fixed fit parameter ignore boundary problems; fixes #128

This commit is contained in:
Dominik Demuth committed 2023-11-01 18:33:52 +01:00
1 parent 661ab81d7e
commit 5116622e42
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -243,7 +243,7 @@ class QFitParameterWidget(QtWidgets.QWidget, Ui_FormFit):
else:
lb, ub = bds[i]
try:
if not (lb < p_i < ub):
if not ((lb < p_i < ub) or (not is_fixed[i])):
raise ValueError(f'Parameter {g.name} is outside bounds ({lb}, {ub})')
except TypeError:
pass