diff --git a/symfit/core/argument.py b/symfit/core/argument.py index d3caee50..208e4efc 100644 --- a/symfit/core/argument.py +++ b/symfit/core/argument.py @@ -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`.')