Skip to content

Commit

Permalink
Merge pull request #1169 from munahaf/Inappropriate_Logic-22reader_sc…
Browse files Browse the repository at this point in the history
…hism_native.py12033886399640343059.diff

Remove a logical short circuit in a test expression
  • Loading branch information
knutfrode authored Sep 19, 2024
2 parents ffa2b75 + cc1ca61 commit 89764c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendrift/readers/reader_schism_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def interpolate(self, x, y, z=None, variables=None,
# self._initialize_interpolator(x, y, z)

env_dict = {}
if profiles is not []:
if not profiles:
profiles_dict = {'z': self.z} # probably not valid...
for varname, data in self.data_dict.items():
nearest = False
Expand Down

0 comments on commit 89764c2

Please sign in to comment.