Skip to content

Commit

Permalink
Indicator box to use as_array, for SIRF (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
paskino authored Oct 29, 2019
1 parent 7296dfb commit a4d3aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wrappers/Python/ccpi/optimisation/functions/IndicatorBox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def __call__(self,x):

'''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
Expand Down

0 comments on commit a4d3aa5

Please sign in to comment.