Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
ed165c5f
Commit
ed165c5f
authored
Nov 30, 2016
by
Gregory Ashton
Browse files
Adds check that subtractions is of the correct length
parent
8036b057
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
ed165c5f
...
...
@@ -1404,6 +1404,9 @@ class MCMCSearch(BaseSearchClass):
if
subtractions
is
None
:
subtractions
=
[
0
for
i
in
range
(
ndim
)]
else
:
if
len
(
subtractions
)
!=
self
.
ndim
:
raise
ValueError
(
'subtractions must be of length ndim'
)
with
plt
.
style
.
context
((
context
)):
if
fig
is
None
and
axes
is
None
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment