-
-
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
Improve non-nanosecond warning #7238
Conversation
Hmm...I was kind of hoping we could avoid something like adding a import numpy as np
import xarray as xr
times = [np.datetime64("2000-01-01", "us")]
da = xr.DataArray([1], dims=["time"], coords=[times])
|
Right. thank you for finding that example. I was going to try to construct one. |
:( I don't know of any other way. |
Pandas has a |
8ccbf0e
to
7823d04
Compare
Nice find @mathause! That seems to work. I added a version of that function to
|
It looks like I've stumbled upon some new upstream test failures related to pandas-dev/pandas#49101. |
it's not really new (the CI has been failing since about 4 days ago), but because so many tests fail we're hitting the size limit for new issues:
Not sure if we can do something about that in the action? cc @andersy005 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the feedback @hmaarrfk. Is this what you had in mind?
For example running this script:
leads to the following warnings: