Skip to content

Commit

Permalink
fix(numpy elementwise comparison): Fixed numpy FutureWarning. No elem…
Browse files Browse the repository at this point in the history
…entwise compare is needed if user passes in a numpy recarray, this is only necessary for dictionaries.
  • Loading branch information
spaulins-usgs committed Sep 9, 2021
1 parent 452d9ab commit cd40139
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flopy/mf6/data/mfdatalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,10 @@ def set_data(self, data, key=None, autofill=False):
self.empty_keys[key] = True
else:
self.empty_keys[key] = False
if "check" in list_item:
if (
isinstance(list_item, dict)
and "check" in list_item
):
check = list_item["check"]
else:
check = True
Expand Down

0 comments on commit cd40139

Please sign in to comment.