Skip to content

Commit

Permalink
fix(mfsimulation): repair change for case insensitive model names (#897)
Browse files Browse the repository at this point in the history
A recent change was made to allow case insensitive model names to be added to IMS solutions.  This change broke some previous functionality.  This PR simply checks to make sure that .lower() is not applied to None.
  • Loading branch information
langevin-usgs committed Jun 1, 2020
1 parent 617b98d commit 0958b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/mf6/modflow/mfsimulation.py
Expand Up @@ -1793,7 +1793,7 @@ def _append_to_ims_solution_group(self, ims_file, new_models):
for index, item in enumerate(record):
if record[1] == ims_file or item not in new_models:
new_record.append(item)
if index > 1:
if index > 1 and item is not None:
rec_model_dict[item.lower()] = 1

if record[1] == ims_file:
Expand Down

0 comments on commit 0958b28

Please sign in to comment.