MCPcopy
hub / github.com/pydata/xarray / _test_data_var_interior

Method _test_data_var_interior

xarray/tests/test_dataset.py:7522–7531  ·  view source on GitHub ↗
(
        original_data_var, padded_data_var, padded_dim_name, expected_pad_values
    )

Source from the content-addressed store, hash-verified

7520
7521 @staticmethod
7522 def _test_data_var_interior(
7523 original_data_var, padded_data_var, padded_dim_name, expected_pad_values
7524 ):
7525 np.testing.assert_equal(
7526 np.unique(padded_data_var.isel({padded_dim_name: [0, -1]})),
7527 expected_pad_values,
7528 )
7529 np.testing.assert_array_equal(
7530 padded_data_var.isel({padded_dim_name: slice(1, -1)}), original_data_var
7531 )
7532
7533 @pytest.mark.parametrize("padded_dim_name", ["dim1", "dim2", "dim3", "time"])
7534 @pytest.mark.parametrize(

Callers 1

test_padMethod · 0.95

Calls 1

iselMethod · 0.45

Tested by

no test coverage detected