File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ def load_ants_h5(filename: Path) -> nt.base.TransformBase:
78
78
spacing = transform2 ['TransformFixedParameters' ][6 :9 ]
79
79
direction = transform2 ['TransformFixedParameters' ][9 :].reshape ((3 , 3 ))
80
80
81
- # We are not yet confident that we handle non-unit spacing
81
+ # We are not yet confident that we handle anisotropic spacing
82
82
# or direction cosine ordering correctly.
83
83
# If we confirm or fix, we can remove these checks.
84
- if not np .allclose (spacing , 1 ):
85
- raise ValueError (f'Unexpected spacing: { spacing } ' )
84
+ if not np .allclose (spacing , spacing [ 0 ] ):
85
+ raise ValueError (f'Anisotropic spacing: { spacing } ' )
86
86
if not np .allclose (direction , direction .T ):
87
87
raise ValueError (f'Asymmetric direction matrix: { direction } ' )
88
88
You can’t perform that action at this time.
0 commit comments