issues: 399042126
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
399042126 | MDU6SXNzdWUzOTkwNDIxMjY= | 2673 | NaT tests need to be fixed on master | 2448579 | closed | 0 | 3 | 2019-01-14T19:37:45Z | 2019-01-15T16:54:56Z | 2019-01-15T11:19:59Z | MEMBER | ```python =================================== FAILURES =================================== ____ TestVariable.test_index_0d_not_a_time _______ self = <xarray.tests.test_variable.TestVariable object at 0x7f0dd7b6bda0> def test_index_0d_not_a_time(self): d = np.datetime64('NaT', 'ns') x = self.cls(['x'], [d])
self = <xarray.tests.test_variable.TestVariable object at 0x7f0dd7b6bda0> variable = <xarray.Variable (x: 1)> array(['NaT'], dtype='datetime64[ns]') expected_value0 = numpy.datetime64('NaT'), expected_dtype = None def _assertIndexedLikeNDArray(self, variable, expected_value0, expected_dtype=None): """Given a 1-dimensional variable, verify that the variable is indexed like a numpy.ndarray. """ assert variable[0].shape == () assert variable[0].ndim == 0 assert variable[0].size == 1 # test identity assert variable.equals(variable.copy()) assert variable.identical(variable.copy()) # check value is equal for both ndarray and Variable with warnings.catch_warnings(): warnings.filterwarnings('ignore', "In the future, 'NAT == x'")
____ TestVariableWithDask.test_index_0d_not_a_time _____ self = <xarray.tests.test_variable.TestVariableWithDask object at 0x7f0e00bc5978> def test_index_0d_not_a_time(self): d = np.datetime64('NaT', 'ns') x = self.cls(['x'], [d])
self = <xarray.tests.test_variable.TestVariableWithDask object at 0x7f0e00bc5978> variable = <xarray.Variable (x: 1)> dask.array<shape=(1,), dtype=datetime64[ns], chunksize=(1,)> expected_value0 = numpy.datetime64('NaT'), expected_dtype = None def _assertIndexedLikeNDArray(self, variable, expected_value0, expected_dtype=None): """Given a 1-dimensional variable, verify that the variable is indexed like a numpy.ndarray. """ assert variable[0].shape == () assert variable[0].ndim == 0 assert variable[0].size == 1 # test identity assert variable.equals(variable.copy()) assert variable.identical(variable.copy()) # check value is equal for both ndarray and Variable with warnings.catch_warnings(): warnings.filterwarnings('ignore', "In the future, 'NAT == x'")
___ TestIndexVariable.testindex_0d_not_a_time ____ self = <xarray.tests.test_variable.TestIndexVariable object at 0x7f0e01063390> def test_index_0d_not_a_time(self): d = np.datetime64('NaT', 'ns') x = self.cls(['x'], [d])
self = <xarray.tests.test_variable.TestIndexVariable object at 0x7f0e01063390> variable = <xarray.IndexVariable 'x' (x: 1)> array(['NaT'], dtype='datetime64[ns]') expected_value0 = numpy.datetime64('NaT'), expected_dtype = None def _assertIndexedLikeNDArray(self, variable, expected_value0, expected_dtype=None): """Given a 1-dimensional variable, verify that the variable is indexed like a numpy.ndarray. """ assert variable[0].shape == () assert variable[0].ndim == 0 assert variable[0].size == 1 # test identity assert variable.equals(variable.copy()) assert variable.identical(variable.copy()) # check value is equal for both ndarray and Variable with warnings.catch_warnings(): warnings.filterwarnings('ignore', "In the future, 'NAT == x'")
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2673/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |