Uh oh!
There was an error while loading. Please reload this page.
Improve non-nanosecond warning - #7238
Conversation
spencerkclark
commented
Oct 30, 2022
Hmm...I was kind of hoping we could avoid something like adding a importnumpyasnpimportxarrayasxrtimes= [np.datetime64("2000-01-01", "us")]
da=xr.DataArray([1], dims=["time"], coords=[times]) |
hmaarrfk
commented
Oct 30, 2022
Right. thank you for finding that example. I was going to try to construct one. |
dcherian
commented
Nov 1, 2022
:( I don't know of any other way. |
mathause
commented
Nov 3, 2022
Pandas has a |
8ccbf0e to
7823d04Comparespencerkclark
commented
Nov 4, 2022
Nice find @mathause! That seems to work. I added a version of that function to |
spencerkclark
commented
Nov 4, 2022
It looks like I've stumbled upon some new upstream test failures related to pandas-dev/pandas#49101. |
keewis
commented
Nov 4, 2022
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 |
Thanks for the feedback @hmaarrfk. Is this what you had in mind?
For example running this script:
leads to the following warnings: