Skip to content

Commit

Permalink
Fix TypeError for Python <3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed May 31, 2020
1 parent 050f33e commit c9ecd76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchio/data/sampler/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ def get_crop_transform(
crop_ini = index_ini.tolist()
crop_fin = (shape - index_fin).tolist()
TypeBounds = Tuple[int, int, int, int, int, int]
cropping: TypeBounds = sum(zip(crop_ini, crop_fin), start=())
start = ()
cropping: TypeBounds = sum(zip(crop_ini, crop_fin), start)
return Crop(cropping)

0 comments on commit c9ecd76

Please sign in to comment.