From a4d3aa5d160f695acedef2d4fa39013ddd8d9bef Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Tue, 29 Oct 2019 23:13:37 +0000 Subject: Indicator box to use as_array, for SIRF (#418) --- Wrappers/Python/ccpi/optimisation/functions/IndicatorBox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/ccpi/optimisation/functions/IndicatorBox.py b/Wrappers/Python/ccpi/optimisation/functions/IndicatorBox.py index fd34d96..ac8978a 100755 --- a/Wrappers/Python/ccpi/optimisation/functions/IndicatorBox.py +++ b/Wrappers/Python/ccpi/optimisation/functions/IndicatorBox.py @@ -49,8 +49,8 @@ class IndicatorBox(Function): '''Evaluates IndicatorBox at x''' - if (numpy.all(x.array>=self.lower) and - numpy.all(x.array <= self.upper) ): + if (numpy.all(x.as_array() >= self.lower) and + numpy.all(x.as_array() <= self.upper) ): val = 0 else: val = numpy.inf -- cgit v1.2.3