(self, dtype)
| 2840 | assert_identical(expected, actual) |
| 2841 | |
| 2842 | def test_dropna(self, dtype): |
| 2843 | array = ( |
| 2844 | create_nan_array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1], dtype) |
| 2845 | * unit_registry.m |
| 2846 | ) |
| 2847 | x = np.arange(len(array)) |
| 2848 | data_array = xr.DataArray(data=array, coords={"x": x}, dims=["x"]) |
| 2849 | |
| 2850 | units = extract_units(data_array) |
| 2851 | expected = attach_units(strip_units(data_array).dropna(dim="x"), units) |
| 2852 | actual = data_array.dropna(dim="x") |
| 2853 | |
| 2854 | assert_units_equal(expected, actual) |
| 2855 | assert_identical(expected, actual) |
| 2856 | |
| 2857 | @pytest.mark.parametrize( |
| 2858 | "unit", |
nothing calls this directly
no test coverage detected