-
Notifications
You must be signed in to change notification settings - Fork 283
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
DeprecationWarning
s
#4574
Comments
Yes, I've been seeing some of these. I'm also getting a persistent error in my envs at present from numpy :
That looks to me like a compatibilty problem between numpy + netCDF4 versions, but I haven't managed to fix it. |
@pp-mo I'm not seeing that from the Iris tests, but when testing my user code with the v3.2 release candidate I got some like this:
I can't say I even attempted to understand them! |
😄 Presumably it is a clib / numpy / netCDF4 version or compatibility problem. So may not apply to the CI envs after all |
@pp-mo do you have a theory about why
does not turn the warning into an error? Incidentally running that now is giving me the |
I think what's happening here is map_blocks throwing a 0d array through the regridder, see https://docs.dask.org/en/latest/generated/dask.array.Array.map_blocks.html near the top of the page. The result of this would be an oddly suppressed failure (maybe Dask suppresses errors but not warnings?) So I'm not sure I'm worried about this - though a little more investigation to confirm my assessment is correct would be reassuring. |
Thanks @wjbenfold I don’t think I would ever have figured that one out! So would this mean we just need to pass the |
Yeah, ideally we'd be handling it properly so that the regridding tells dask what type of array to expect out, but I think I remember it being more complicated than that (not that I can remember what made it more complicated). The offending Line 352 in cf5413c
|
I for one hadn't realised it did that. Just for background ... We fixed this for our 'from_array' usage in #4135 and it went into v3.0.2 I suspect this usage in map_blocks may actually go back further, |
Interesting. |
I'd be happy for that to be raised separately I think - seems good to close to me |
📰 Custom Issue
A couple of
DeprecationWarning
s I've spotted that should probably be addressed at some point. They can be reproduced by running test modules, but don't seem to show up in the CI.Steps to reproduce
iris-dev
environmentmeta
correctly inmap_blocks
to prevent dask from passing a 0d array through the regridder #4598python lib/iris/tests/integration/analysis/test_area_weighted.py
producespython lib/iris/tests/integration/plot/test_netcdftime.py
producesThe text was updated successfully, but these errors were encountered: