| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from torchio.transforms import RandomAffine |
||
| 13 | def test_rotation_image(self): |
||
| 14 | # Rotation around image center |
||
| 15 | transform = RandomAffine( |
||
| 16 | degrees=(90, 90), |
||
| 17 | default_pad_value=0, |
||
| 18 | center='image', |
||
| 19 | ) |
||
| 20 | transformed = transform(self.sample) |
||
| 21 | total = transformed.t1.data.sum() |
||
| 22 | self.assertNotEqual(total, 0) |
||
| 23 | |||
| 34 |