home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1056924176

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/6318#issuecomment-1056924176 https://api.github.com/repos/pydata/xarray/issues/6318 1056924176 IC_kwDOAMm_X84-_2IQ 6628425 2022-03-02T13:20:23Z 2022-03-02T13:20:23Z MEMBER

To be honest I didn't know it was possible to open a Dataset and maintain np.datetime64[us] values. I feel like casting maybe should occur automatically -- we do this already in other contexts, e.g.: ``` In [3]: da = xr.DataArray([np.datetime64("2000-01-01", "us")], dims=["time"], name="time")

In [4]: da Out[4]: <xarray.DataArray 'time' (time: 1)> array(['2000-01-01T00:00:00.000000000'], dtype='datetime64[ns]') Dimensions without coordinates: time ``` I'll try and dig deeper into this in the next few days, but @keewis's workaround should be good in the meantime.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1157163377
Powered by Datasette · Queries took 0.533ms · About: xarray-datasette