()
| 57 | |
| 58 | |
| 59 | def test_coordinate_transform_init() -> None: |
| 60 | tr = SimpleCoordinateTransform((4, 4), 2.0) |
| 61 | |
| 62 | assert tr.coord_names == ("x", "y") |
| 63 | # array dimensions in reverse order (y = rows, x = cols) |
| 64 | assert tr.dims == ("y", "x") |
| 65 | assert tr.dim_size == {"x": 4, "y": 4} |
| 66 | assert tr.dtype == np.dtype(np.float64) |
| 67 | |
| 68 | tr2 = SimpleCoordinateTransform((4, 4), 2.0, dtype=np.int64) |
| 69 | assert tr2.dtype == np.dtype(np.int64) |
| 70 | |
| 71 | |
| 72 | @pytest.mark.parametrize("dims", [None, ("y", "x")]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…