Skip to content

Commit

Permalink
Fix(MFSimulation): remove case sensitivity from register_ims_package() (
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsen-usgs committed May 25, 2020
1 parent bb861ac commit 3cec792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autotest/t504_test.py
Expand Up @@ -938,7 +938,7 @@ def test_replace_ims_package():

ims = flopy.mf6.ModflowIms(sim, print_option='SUMMARY',
complexity="COMPLEX")
sim.register_ims_package(ims, ["gwf_1", ])
sim.register_ims_package(ims, ["GwF_1", ])
sim.write_simulation()
success, buff = sim.run_simulation()

Expand Down
4 changes: 2 additions & 2 deletions flopy/mf6/modflow/mfsimulation.py
Expand Up @@ -1794,11 +1794,11 @@ def _append_to_ims_solution_group(self, ims_file, new_models):
if record[1] == ims_file or item not in new_models:
new_record.append(item)
if index > 1:
rec_model_dict[item] = 1
rec_model_dict[item.lower()] = 1

if record[1] == ims_file:
for model in new_models:
if model not in rec_model_dict:
if model.lower() not in rec_model_dict:
new_record.append(model)

new_array.append(tuple(new_record))
Expand Down

0 comments on commit 3cec792

Please sign in to comment.