home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1428748922

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1428748922 PR_kwDOAMm_X85B07x6 7238 Improve non-nanosecond warning 6628425 closed 0     7 2022-10-30T11:44:56Z 2022-11-04T20:37:27Z 2022-11-04T20:13:19Z MEMBER   0 pydata/xarray/pulls/7238

Thanks for the feedback @hmaarrfk. Is this what you had in mind?

  • [x] Closes #7237

For example running this script: ```python import numpy as np import xarray as xr

times = [np.datetime64("2000-01-01", "us")] var = xr.Variable(["time"], times) da = xr.DataArray(times) leads to the following warnings: $ python test_warning.py test_warning.py:6: UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time. var = xr.Variable(["time"], times) test_warning.py:7: UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time. da = xr.DataArray(times) ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7238/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 7 rows from issue in issue_comments
Powered by Datasette · Queries took 77.895ms · About: xarray-datasette