-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
FutureWarning when using open_mfdataset() #8671
Comments
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
Thanks for raising this @arthur-e . This shouldn't really have happened, but I expect this should be a simple fix.
That's totally understandable. Just for context, it's unlikely that your curriculum would get broken because we test against upstream development versions of packages, so as soon as a new pandas commit turns this warning into an error, we would see it as a test failure in our CI (and fix it before pandas releases). We are however guilty of allowing our test suites to pass even they generate (lots of) warnings, which is why this one made it through to be seen by users. (see also #7164 and #8494) |
Looks like the warning is raised here, and should be fixable by wrapping the list comprehension with a If you (or any of your students) would like to have a go at fixing it we would welcome a pull request, else we can do it 🙂 |
Hii! I am new to xarray, but can I work on this issue? |
Yes, anyone is welcome to work on any issue, just submit a pull request. We don't "reserve" issues for one person to work on. |
Thanks @dcherian, @TomNicholas. It looks like this is fixed in the latest |
What is your issue?
When I attempt to use
open_mfdataset()
with a GLOB expression, to open multiple files:This works but generates a
FutureWarning
:My concern about the
FutureWarning
is that this will, at best, confuse my students and, at worst, potentially break my curriculum after some "future version." However, it's not clear that I have any control over what to do differently here.I'm using
xarray
version'2023.1.0'
. The netCDF4 files I'm using could be downloaded automatically (given a NASA Earthdata account) with:The text was updated successfully, but these errors were encountered: