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

Method check

xarray/tests/test_variable.py:2859–2865  ·  view source on GitHub ↗
(actual, expect_dtype, expect_values)

Source from the content-addressed store, hash-verified

2857 ).chunk(dict(x=(1, 1), y=(2,)))
2858
2859 def check(actual, expect_dtype, expect_values):
2860 assert actual.dtype == expect_dtype
2861 assert actual.shape == orig.shape
2862 assert actual.dims == orig.dims
2863 assert actual.attrs == orig.attrs
2864 assert actual.chunks == orig.chunks
2865 assert_array_equal(actual.values, expect_values)
2866
2867 check(full_like(orig, 2), orig.dtype, np.full_like(orig.values, 2))
2868 # override dtype

Callers 8

test_isinMethod · 0.80
test_whereMethod · 0.80
is_compatibleMethod · 0.80
test_broadcast_equalsMethod · 0.80
test_selMethod · 0.80
test_locMethod · 0.80
test_drop_selMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected