Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MarliesA committed Aug 26, 2024
2 parents 67940d4 + eed8224 commit aab7b5b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xbTools/xbeachpost.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,17 +445,17 @@ def load_modeloutput(self, var):
return

if '_mean' in var:
assert sum([var[:-5] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'
assert sum([var[:-5] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'.format(var)
elif '_var' in var:
assert sum([var[:-4] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'
assert sum([var[:-4] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'.format(var)
elif '_min' in var:
assert sum([var[:-4] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'
assert sum([var[:-4] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'.format(var)
elif '_max' in var:
assert sum([var[:-4] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'
assert sum([var[:-4] in x for x in self.params['meanvar']]) > 0, '{} not in xb output'.format(var)
elif 'point_' in var:
assert sum([var[6:] in x for x in self.params['pointvar']]) > 0, '{} not in xb output'
assert sum([var[6:] in x for x in self.params['pointvar']]) > 0, '{} not in xb output'.format(var)
else:
assert sum([var in x for x in self.params['globalvar']]) > 0, '{} not in xb output'
assert sum([var in x for x in self.params['globalvar']]) > 0, '{} not in xb output'.format(var)

# if not yet present, load coordinates
if self.var == {}:
Expand Down

0 comments on commit aab7b5b

Please sign in to comment.