Commit 2b614c06 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

MultiCurveFit: check there are no duplicates in x_slices

parent 3b9203ba
......@@ -76,6 +76,9 @@ class MultiCurveFit:
if type(f) == list and len(f) != (len(self.x_slices)+1):
raise Exception("Incorrect number of functions.")
if len(self.x_slices) != len(set(self.x_slices)):
raise Exception("There are duplicates in x_slices, which is not allowed.")
current_x = []
current_y = []
current_y_std = [] if y_std is not None else 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