Skip to content

Commit

Permalink
Merge branch 'symmip' of github.com:tBuLi/symfit into symmip
Browse files Browse the repository at this point in the history
  • Loading branch information
tBuLi committed Jan 4, 2024
2 parents edee7ef + 6fa3e04 commit 6450a20
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions symfit/core/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,7 @@ def __init__(self, name=None, value=1.0, min=None, max=None, fixed=False, **assu
self.fixed = fixed

if min is not None and max is not None:
test = min > max
if isinstance(test, np.ndarray):
test = test.any()

if test and not self.fixed:
if np.any(min > max) and not self.fixed:
raise ValueError('The value of `min` should be less than or'
' equal to the value of `max`.')

Expand Down

0 comments on commit 6450a20

Please sign in to comment.