Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: FloPy load throws error reading .nam file for a USG model #1701

Closed
SamanTavakoli opened this issue Jan 31, 2023 · 2 comments
Closed

bug: FloPy load throws error reading .nam file for a USG model #1701

SamanTavakoli opened this issue Jan 31, 2023 · 2 comments
Labels
Milestone

Comments

@SamanTavakoli
Copy link

Describe the bug
FloPy throws an error attemping to load a USG model. The USG model has LPF package for model properties.

To Reproduce
ml = flopy.modflow.Modflow.load("SV_SWI_uni_01j.nam" ,version = "mfusg", verbose = True, check = False)

File D:\Software\Anaconda3\lib\site-packages\flopy\modflow\mf.py:811 in load
dis = disnamdata.package.load(

AttributeError: 'NoneType' object has no attribute 'load'
@cnicol-gwlogic
Copy link
Contributor

I'll have to add a trap for this case, but the correct way to load mfusg models is:

flopy.mfusg.MfUsg.load()

Give that a shot.

@wpbonelli wpbonelli added this to the 3.7.0 milestone May 1, 2024
@wpbonelli
Copy link
Contributor

I think this can be closed, the deprecation of USG support was turned into an error with 696a209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants