issues: 941808931
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
941808931 | MDU6SXNzdWU5NDE4MDg5MzE= | 5593 | TestDataset.test_resample_loffset fails (due to precision?) on i686 | 110765 | open | 0 | 0 | 2021-07-12T08:32:00Z | 2023-11-02T04:38:35Z | CONTRIBUTOR | What happened: The test suite failed: ```pytb =================================== FAILURES =================================== ____ TestDataset.test_resample_loffset _____ self = <xarray.tests.test_dataset.TestDataset object at 0xe6ccde68>
actual = <xarray.DataArray 'bar' (time: 3)> array([ 0.01847694, -0.1788066 , -0.79264435]) Coordinates: * time (time) datetime64[ns] 1999-12-31T12:00:00 ... 2000-01-02T12:00:00 ds = <xarray.Dataset> Dimensions: (time: 10, x: 5, y: 3) Coordinates: * time (time) datetime64[ns] 2000-01-01 ... 2000-01-03T06:00:00 Dimensions without coordinates: x, y Data variables: foo (time, x, y) float64 1.764 0.4002 0.9787 ... 1.117 -1.316 -0.4616 bar (time) float64 -0.06824 1.713 -0.7448 ... -1.08 -1.147 -0.4378 Attributes: dsmeta: dsdata expected = <xarray.DataArray 'bar' (time: 3)> array([ 0.01847694, -0.1788066 , -0.79264435]) Coordinates: * time (time) datetime64[ns] 1999-12-31T12:00:00 ... 2000-01-02T12:00:00 expected_ = time 1999-12-31 12:00:00 0.018477 2000-01-01 12:00:00 -0.178807 2000-01-02 12:00:00 -0.792644 Freq: 24H, Name: bar, dtype: float64 self = <xarray.tests.test_dataset.TestDataset object at 0xe6ccde68> times = DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 06:00:00', '2000-01-01 12:00:00', '2000-01-01 18:00:00', '2000-01-02 00:00:00', '2000-01-02 06:00:00', '2000-01-02 12:00:00', '2000-01-02 18:00:00', '2000-01-03 00:00:00', '2000-01-03 06:00:00'], dtype='datetime64[ns]', freq='6H') /var/tmp/portage/dev-python/xarray-0.18.2-r1/work/xarray-0.18.2/xarray/tests/test_dataset.py:3991: AssertionError =============================== warnings summary =============================== ``` What you expected to happen: Test suite passing ;-). Minimal Complete Verifiable Example: n/a (xarray test suite problem) Anything else we need to know?: This happens on 32-bit i686 system but not on amd64. I suppose it's a precision problem. Environment: Output of <tt>xr.show_versions()</tt>``` INSTALLED VERSIONS ------------------ commit: None python: 3.9.5 (default, Jun 13 2021, 01:01:34) [GCC 10.3.0] python-bits: 32 OS: Linux OS-release: 4.14.34-gentoo-infra38 machine: i686 processor: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz byteorder: little LC_ALL: None LANG: en_US.utf8 LOCALE: ('en_US', 'UTF-8') libhdf5: None libnetcdf: None xarray: 0.18.2 pandas: 1.2.3 numpy: 1.20.2 scipy: 1.6.2 netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: None nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.3.2 dask: None distributed: None matplotlib: None cartopy: None seaborn: None numbagg: None pint: None setuptools: 57.0.0 pip: None conda: None pytest: None IPython: None sphinx: None ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/5593/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |