summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xWrappers/Python/ccpi/optimisation/functions/IndicatorBox.py4
1 files changed, 2 insertions, 2 deletions
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