issues: 327876834
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
327876834 | MDU6SXNzdWUzMjc4NzY4MzQ= | 2201 | Conversion to and from Iris fails | 14019925 | closed | 0 | 1 | 2018-05-30T19:57:45Z | 2018-07-19T05:56:24Z | 2018-07-19T05:56:24Z | CONTRIBUTOR | Code Sample```python import numpy as np import xarray as xr from iris.coords import DimCoord from iris.cube import Cube def test_from_iris_no_var_name(): latitude = DimCoord(np.linspace(-90, 90, 4), standard_name='latitude') cube = Cube([0, 0, 0, 0], dim_coords_and_dims=[(latitude, 0)]) xr.DataArray.from_iris(cube) ValueError: Coordinate latitude has no var_name attribute.def test_to_iris_non_numeric_coord(): data = np.random.rand(3) locs = ['IA', 'IL', 'IN'] da = xr.DataArray(data, coords=[locs], dims=['space']) xr.DataArray.to_iris(da) ValueError: The points array must be numeric.def test_to_iris_non_monotonic_coord(): data = np.random.rand(3) locs = [0, 2, 1] da = xr.DataArray(data, coords=[locs], dims=['space']) xr.DataArray.to_iris(da) ValueError: The points array must be strictly monotonic.``` Problem descriptionEach of the tests above fails. Expected OutputFirst test: Use Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2201/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |