(self)
| 128 | set_track_meta(True) |
| 129 | |
| 130 | def test_identical_spatial(self): |
| 131 | test_input = {"X": np.ones((1, 10, 16, 17))} |
| 132 | xform = Resized("X", (-1, 16, 17)) |
| 133 | out = xform(test_input) |
| 134 | out["Y"] = 2 * out["X"] |
| 135 | transform_inverse = Invertd(keys="Y", transform=xform, orig_keys="X") |
| 136 | assert_allclose(transform_inverse(out)["Y"].array, np.ones((1, 10, 16, 17)) * 2) |
| 137 | |
| 138 | def test_consistent_resize(self): |
| 139 | spatial_size = (16, 16, 16) |
nothing calls this directly
no test coverage detected