forked from IPKM/nmreval
closes #86
This commit is contained in:
parent
6fd3053964
commit
058551cc72
@ -484,7 +484,7 @@ class Points:
|
||||
|
||||
return self
|
||||
|
||||
def set_data(self, x: np.ndarray = None, y: np.ndarray = None, y_err: np.ndarray = None, replace_mask=True) -> PointLike:
|
||||
def set_data(self, x: np.ndarray = None, y: np.ndarray = None, y_err: np.ndarray | float = None, replace_mask: bool = True) -> PointLike:
|
||||
if x is None:
|
||||
x = self._x
|
||||
if y is None:
|
||||
|
@ -387,7 +387,7 @@ class FitResult(Points):
|
||||
|
||||
self.fun_kwargs['complex_mode'] = actual_mode
|
||||
|
||||
new_fit.set_data(x_values, y_values)
|
||||
new_fit.set_data(x_values, y_values, y_err=0.0)
|
||||
|
||||
return new_fit
|
||||
|
||||
@ -410,7 +410,7 @@ class FitResult(Points):
|
||||
else:
|
||||
part_functions.append(Points(x_values, sub_y, name=sub_name))
|
||||
|
||||
if actual_mode < 0:
|
||||
if actual_mode > 0:
|
||||
self.fun_kwargs['complex_mode'] = actual_mode
|
||||
|
||||
return part_functions
|
||||
|
Loading…
Reference in New Issue
Block a user