Commit ed165c5f authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds check that subtractions is of the correct length

parent 8036b057
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment