issues: 559873728
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
559873728 | MDU6SXNzdWU1NTk4NzM3Mjg= | 3751 | more upstream-dev cftime failures | 2448579 | closed | 0 | 20 | 2020-02-04T17:36:03Z | 2020-03-22T15:01:36Z | 2020-03-13T06:14:41Z | MEMBER | 46 failed tests but they all seem to result from the same TypeError ``` =================================== FAILURES =================================== __ test_sel_date_scalar_nearest[365_day-sel_kwargs0] ___ da = <xarray.DataArray (time: 4)> 0002-02-01 00:00:00], dtype='object') sel_kwargs = {'method': 'nearest'}
xarray/tests/test_cftimeindex.py:460: xarray/core/dataarray.py:1056: in sel ds = self._to_temp_dataset().sel( xarray/core/dataset.py:2056: in sel pos_indexers, new_indexes = remap_label_indexers( xarray/core/coordinates.py:391: in remap_label_indexers pos_indexers, new_indexes = indexing.remap_label_indexers( xarray/core/indexing.py:270: in remap_label_indexers idxr, new_idx = convert_label_indexer(index, label, dim, method, tolerance) xarray/core/indexing.py:189: in convert_label_indexer indexer = index.get_loc( xarray/coding/cftimeindex.py:334: in get_loc return pd.Index.get_loc(self, key, method=method, tolerance=tolerance) /usr/share/miniconda/envs/xarray-tests/lib/python3.8/site-packages/pandas/core/indexes/base.py:2899: in get_loc indexer = self.get_indexer([key], method=method, tolerance=tolerance) /usr/share/miniconda/envs/xarray-tests/lib/python3.8/site-packages/pandas/core/indexes/base.py:2992: in get_indexer indexer = self._get_nearest_indexer(target, limit, tolerance) /usr/share/miniconda/envs/xarray-tests/lib/python3.8/site-packages/pandas/core/indexes/base.py:3076: in _get_nearest_indexer left_distances = np.abs(self[left_indexer] - target) xarray/coding/cftimeindex.py:444: in sub return CFTimeIndex(np.array(self) - other) xarray/coding/cftimeindex.py:248: in new assert_all_valid_date_type(data) data = TimedeltaIndex(['-59 days'], dtype='timedelta64[ns]', freq=None)
xarray/coding/cftimeindex.py:206: TypeError ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3751/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |