Skip to content

Commit

Permalink
Update symfit/core/argument.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter C Kroon <pckroon@users.noreply.github.com>
  • Loading branch information
tBuLi and pckroon committed Oct 3, 2023
1 parent 77dd0bd commit 6fa3e04
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 6fa3e04

Please sign in to comment.