Skip to content

Commit 9617fa0

Browse files
fixing issue with negative weights
1 parent 8c0443a commit 9617fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sbmlsim/fit/optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def initialize(
432432
# The weighting must be normalized to the curve!, i.e. be a
433433
# unitless quantity approximately the same for the different
434434
# datasets.
435-
weight_points = y_ref / y_ref_err
435+
weight_points = np.abs(y_ref / y_ref_err)
436436
# weight_points = 1.0 / y_ref_err # scale with error;
437437
else:
438438
logger.warning(

0 commit comments

Comments
 (0)