Skip to content

Commit 6734d0f

Browse files
committed
fix mypy with assert
1 parent 8a22f12 commit 6734d0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

heudiconv/convert.py

+1
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ def update_multiorient_name(
534534
return filename
535535
iop = metadata.get("ImageOrientationPatientDICOM")
536536
# iop = [round(x) for x in iop]
537+
assert isinstance(iop, list)
537538
cross_prod = [
538539
iop[1] * iop[5] - iop[2] * iop[4],
539540
iop[2] * iop[3] - iop[0] * iop[5],

0 commit comments

Comments
 (0)