From 6fa3e04a31b2ce939d99db69a1b73474c9149375 Mon Sep 17 00:00:00 2001 From: Martin Roelfs Date: Tue, 3 Oct 2023 11:01:41 +0200 Subject: [PATCH] Update symfit/core/argument.py Co-authored-by: Peter C Kroon --- symfit/core/argument.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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`.')