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/pull/7238#issuecomment-1303772205,https://api.github.com/repos/pydata/xarray/issues/7238,1303772205,IC_kwDOAMm_X85Ntfwt,14808389,2022-11-04T15:35:12Z,2022-11-04T15:35:12Z,MEMBER,"> It looks like I've stumbled upon some new upstream test failures
it's not really [new](https://github.com/pydata/xarray/actions/runs/3390263562/jobs/5634192550) (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:
```
{""resource"":""Issue"",""code"":""custom"",""field"":""body"",""message"":""body is too long (maximum is 65536 characters)""}
```
Not sure if we can do something about that in the action?
cc @andersy005","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1428748922
https://github.com/pydata/xarray/pull/7238#issuecomment-1303356166,https://api.github.com/repos/pydata/xarray/issues/7238,1303356166,IC_kwDOAMm_X85Nr6MG,6628425,2022-11-04T12:07:19Z,2022-11-04T12:07:19Z,MEMBER,It looks like I've stumbled upon some new upstream test failures related to https://github.com/pandas-dev/pandas/pull/49101.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1428748922
https://github.com/pydata/xarray/pull/7238#issuecomment-1303303334,https://api.github.com/repos/pydata/xarray/issues/7238,1303303334,IC_kwDOAMm_X85NrtSm,6628425,2022-11-04T11:39:44Z,2022-11-04T11:39:44Z,MEMBER,"Nice find @mathause! That seems to work. I added a version of that function to `utils`. The warning from [my example above](https://github.com/pydata/xarray/pull/7238#issuecomment-1296235033) now looks like:
```
test_warning.py:5: 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([1], dims=[""time""], coords=[times])
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1428748922
https://github.com/pydata/xarray/pull/7238#issuecomment-1301816540,https://api.github.com/repos/pydata/xarray/issues/7238,1301816540,IC_kwDOAMm_X85NmCTc,10194086,2022-11-03T09:09:25Z,2022-11-03T09:09:25Z,MEMBER,Pandas has a `find_stack_level` function (https://github.com/pandas-dev/pandas/blob/0106c26529900bad0561efb9c9180f7f016365b0/pandas/util/_exceptions.py#L28). But I am not sure if this would fix the problem?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1428748922
https://github.com/pydata/xarray/pull/7238#issuecomment-1298658702,https://api.github.com/repos/pydata/xarray/issues/7238,1298658702,IC_kwDOAMm_X85NZ_WO,2448579,2022-11-01T15:08:32Z,2022-11-01T15:08:32Z,MEMBER,"> .I was kind of hoping we could avoid something like adding a _stacklevel_increment argument,
:( I don't know of any other way.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1428748922
https://github.com/pydata/xarray/pull/7238#issuecomment-1296235033,https://api.github.com/repos/pydata/xarray/issues/7238,1296235033,IC_kwDOAMm_X85NQvoZ,6628425,2022-10-30T11:56:00Z,2022-10-30T11:56:00Z,MEMBER,"Hmm...I was kind of hoping we could avoid something like adding a `_stacklevel_increment` argument, but hardcoding the `stacklevel` obviously doesn't work in the case that fields are converted to variables within xarray, e.g. in the case of passing coordinates to the DataArray constructor:
```python
import numpy as np
import xarray as xr
times = [np.datetime64(""2000-01-01"", ""us"")]
da = xr.DataArray([1], dims=[""time""], coords=[times])
```
```
$ python test_warning.py
/Users/spencer/software/xarray/xarray/core/dataarray.py:148: 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 = as_variable(coord, name=dim)
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1428748922