Skip to content

Commit

Permalink
Fix syntax error for Python < 3.8 (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar authored Aug 30, 2021
1 parent cf656a7 commit e4342b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchio/data/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def read_shape(path: TypePath) -> Tuple[int, int, int, int]:
spatial_shape = reader.GetSize()
if reader.GetDimension() == 2:
spatial_shape = *spatial_shape, 1
return num_channels, *spatial_shape
return (num_channels,) + spatial_shape


def read_affine(path: TypePath) -> np.ndarray:
Expand Down

0 comments on commit e4342b2

Please sign in to comment.