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

numpy compatibility issues with flopy and pyemu #2

Open
elwan3 opened this issue Sep 26, 2023 · 2 comments
Open

numpy compatibility issues with flopy and pyemu #2

elwan3 opened this issue Sep 26, 2023 · 2 comments

Comments

@elwan3
Copy link

elwan3 commented Sep 26, 2023

I've run into a couple of hiccups with flopy and pyemu and it seems to be connected to numpy. Here is the rundown:

First up, the flopy problem
Tried importing flopy and get hit with this AttributeError about np.float being deprecated. So here is what the traceback looked like

AttributeError: module 'numpy' has no attribute 'float'.

Quick fix
Good news, I managed to get past this by downgrading to numpy=1.19

Next, the pyemu issue
After sorting out the first one, I ended up hitting a wall in pyemu. The method OrdinaryKrige.calc_factors_grid throws a TypeError. Here is that traceback

TypeError: ufunc 'isfinite' not supported for the input types...

Any tips on how to fix it?

@jtwhite79
Copy link
Owner

you know @elwan3 I probably should take down these notebooks - the GMDSI notebooks https://github.com/gmdsi/GMDSI_notebooks have replaced these notebooks and are actively maintained. Is there anything specific you are trying to see in these notebooks that isn't in the GMDSI notebooks?

I suspect that pyemu/numpy issue is because you might need to downgrade numpy even more into the ancient past...of 3 years ago!

@elwan3
Copy link
Author

elwan3 commented Sep 27, 2023

Totally get it, @jtwhite79. Those GMDSI notebooks are gold!
The old dsa notebooks align well with a current project we've got going (especially with the nwt, 3-layer model, and dry period obs).

You're a legend for putting out all these awesome resources! Many thanks!

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

No branches or pull requests

2 participants