Skip to content

Commit

Permalink
[pproc] fix max computation which breaks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikohansen committed Dec 11, 2024
1 parent b0224b2 commit 2527174
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/cocopp/pproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3011,11 +3011,8 @@ def info(self, opt=None):
sys.stdout.write('\n')

maxevals = []
for i in range(len(dimensions)):
maxeval = []
for d in dictDim[dimensions[i]]:
maxeval = int(max((d.mMaxEvals(), maxeval)))
maxevals.append(maxeval)
for dim in dimensions: # max has default since Python 3.4
maxevals.append(int(max((d.mMaxEvals() for d in dictDim[dim]), default=-1)))
print('Max evals: %s' % str(maxevals))

if opt == 'all':
Expand Down

0 comments on commit 2527174

Please sign in to comment.