Skip to content
Snippets Groups Projects
Commit ed165c5f authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds check that subtractions is of the correct length

parent 8036b057
Branches
Tags
No related merge requests found
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment