Skip to content

Commit

Permalink
Fix ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed Dec 19, 2024
1 parent ec6de45 commit 8517542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchio/transforms/augmentation/spatial/random_flip.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def apply_transform(self, subject: Subject) -> Subject:
axes_to_flip_hot[i] = False
(axes,) = np.where(axes_to_flip_hot)
axes_list = axes.tolist()
if not axes:
if not axes_list:
return subject

arguments = {'axes': axes_list}
Expand Down

0 comments on commit 8517542

Please sign in to comment.