MCPcopy Index your code
hub / github.com/pydata/xarray / test_da_name_from_cube

Method test_da_name_from_cube

xarray/tests/test_dataarray.py:7241–7249  ·  view source on GitHub ↗
(
        self, std_name, long_name, var_name, name, attrs
    )

Source from the content-addressed store, hash-verified

7239 ],
7240 )
7241 def test_da_name_from_cube(
7242 self, std_name, long_name, var_name, name, attrs
7243 ) -> None:
7244 from iris.cube import Cube
7245
7246 cube = Cube([], var_name=var_name, standard_name=std_name, long_name=long_name)
7247 result = xr.DataArray.from_iris(cube)
7248 expected = xr.DataArray([], name=name, attrs=attrs)
7249 xr.testing.assert_identical(result, expected)
7250
7251 @requires_iris
7252 @pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

from_irisMethod · 0.80

Tested by

no test coverage detected