Skip to content
New issue

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

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

Already on GitHub? # to your account

laytyp is returned as "NoneType" in MP7.py for structured grids in 3.2.12 #692

Closed
TroelsNV opened this issue Oct 23, 2019 · 4 comments
Closed
Assignees

Comments

@TroelsNV
Copy link

MP7.py:
Line 331: return np.array(laytyp, dtype=np.int32)

Issue:
The laytyp returns NoneType since the laytyp is assigned to the package object and not the base modflow object.

e.g. "upw.laytyp" returns a Util2D array, but mf.laytyp returns None (here upw is the name of a ModflowUPW object and mf is a Modflow object)

@jlarsen-usgs
Copy link
Contributor

@TroelsNV, I'll take a look at this issue this afternoon.

@jlarsen-usgs
Copy link
Contributor

@TroelsNV, can you supply more information or your script that you are working with. I'm unable to reproduce this error with my simple test case.

The BaseModel class (base for Modflow and Modpath7) calls the UPW file to get laytyp and in my case seems to be functioning appropriately.

@TroelsNV
Copy link
Author

@jlarsen-usgs , thanks for looking at this. I have made a small test model that produces the error.

MF_nwt_MP7_test_ss.zip

@jlarsen-usgs
Copy link
Contributor

@TroelsNV

I've looked into the issue and it has been fixed with PR #601 on the develop branch. You can update to the most recent development version of flopy (3.2.13) by using

pip install https://github.com/modflowpy/flopy/zipball/develop --upgrade

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

No branches or pull requests

2 participants