| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from ....data.subject import Subject |
||
| 20 | def apply_transform(self, subject: Subject) -> Subject: |
||
| 21 | for image in self.get_images(subject): |
||
| 22 | transform = ToOrientation(image.orientation_str[::-1]) |
||
| 23 | transposed = transform(image) |
||
| 24 | image.set_data(transposed.data) |
||
| 25 | image.affine = transposed.affine |
||
| 26 | return subject |
||
| 27 | |||
| 33 |