-
Notifications
You must be signed in to change notification settings - Fork 303
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
Two test failures in test_goes_imager_nc.py with Python 3.10 #1929
Comments
@gerritholl Any idea what part of that is a DataArray: dt = self.nc['time'].dt
return datetime(year=dt.year, month=dt.month, day=dt.day,
hour=dt.hour, minute=dt.minute,
second=dt.second, microsecond=dt.microsecond) I would think that |
|
I believe @simonrp84 originally wrote this reader. Any ideas how this was supposed to work @simonrp84? Is @gerritholl Can you print out what |
I could compare with Python 3.9, but I should work on other things right now. |
Not sure why this would change in Python 3.10, but it looks like the accessor excepts to be used on an array of datetime-like objects: https://xarray.pydata.org/en/stable/generated/xarray.core.accessor_dt.DatetimeAccessor.html Looking at the source for that accessor my guess is that this is a difference in xarray that is technically an unsupported use case (passing DataArrays to datetime and it automatically converting it to a scalar) or a change in xarray where things are completely based on pandas Series anymore (just a guess). I think it could be updated to either access the individual scalar value of each property of the |
Closed by #1933 where I cast the |
Closed by @pnuu 🙂 |
Describe the bug
Two tests fail on Python 3.10.
To Reproduce
Expected behavior
All tests pass.
Actual results
Environment Info:
Additional context
The text was updated successfully, but these errors were encountered: