Skip to content

Commit

Permalink
fix(fileio.py::flopy_mfsimulation_load): _package_container Attribute…
Browse files Browse the repository at this point in the history
…Error for Flopy<3.9
  • Loading branch information
aleaf committed Oct 16, 2024
1 parent 3b5d919 commit 49b2b59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mfsetup/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,9 @@ def flopy_mfsimulation_load(sim, model, strict=True, load_only=None,
print(' loading exchange package {}..'
'.'.format(exchange_file._get_pname()))
exchange_file.load(strict)
instance._package_container.add_package(exchange_file)
# Flopy>=3.9
if hasattr(instance, '_package_container'):
instance._package_container.add_package(exchange_file)
instance._exchange_files[exgfile[1]] = exchange_file

# load simulation packages
Expand Down

0 comments on commit 49b2b59

Please sign in to comment.