Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gregory Ashton
PyFstat
Commits
ed165c5f
Commit
ed165c5f
authored
8 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Adds check that subtractions is of the correct length
parent
8036b057
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat.py
+3
-0
3 additions, 0 deletions
pyfstat.py
with
3 additions
and
0 deletions
pyfstat.py
+
3
−
0
View file @
ed165c5f
...
@@ -1404,6 +1404,9 @@ class MCMCSearch(BaseSearchClass):
...
@@ -1404,6 +1404,9 @@ class MCMCSearch(BaseSearchClass):
if
subtractions
is
None
:
if
subtractions
is
None
:
subtractions
=
[
0
for
i
in
range
(
ndim
)]
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
)):
with
plt
.
style
.
context
((
context
)):
if
fig
is
None
and
axes
is
None
:
if
fig
is
None
and
axes
is
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment