home / github / pull_requests

Menu
  • Search all tables
  • GraphQL API

pull_requests: 1104395386

This data as json

id node_id number state locked title user body created_at updated_at closed_at merged_at merge_commit_sha assignee milestone draft head base author_association auto_merge repo url merged_by
1104395386 PR_kwDOAMm_X85B07x6 7238 closed 0 Improve non-nanosecond warning 6628425 <!-- Feel free to remove check-list items aren't relevant to your change --> 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) ``` 2022-10-30T11:44:56Z 2022-11-04T20:37:27Z 2022-11-04T20:13:19Z 2022-11-04T20:13:19Z a744e63642e066b2c25778f40fec63fc47d15a7b     0 7823d04d142abbe8ba96290fbdb0cc77c1dcde73 6179d8e881947e71ec9528c65d05159ed3921563 MEMBER   13221727 https://github.com/pydata/xarray/pull/7238  

Links from other tables

  • 0 rows from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 9.115ms