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

Method test_from_array_0d_datetime

xarray/tests/test_namedarray.py:323–326  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

321 assert named_array.dtype == np.dtype("O")
322
323 def test_from_array_0d_datetime(self) -> None:
324 named_array: NamedArray[Any, Any]
325 named_array = from_array([], np.datetime64("2000-01-01"))
326 assert named_array.dtype == np.dtype("datetime64[D]")
327
328 @pytest.mark.parametrize(
329 "timedelta, expected_dtype",

Callers

nothing calls this directly

Calls 2

from_arrayFunction · 0.90
dtypeMethod · 0.45

Tested by

no test coverage detected