Skip to content

Commit

Permalink
fix mypy with assert
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Sep 25, 2024
1 parent 8a22f12 commit 6734d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions heudiconv/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ def update_multiorient_name(
return filename
iop = metadata.get("ImageOrientationPatientDICOM")
# iop = [round(x) for x in iop]
assert isinstance(iop, list)
cross_prod = [
iop[1] * iop[5] - iop[2] * iop[4],
iop[2] * iop[3] - iop[0] * iop[5],
Expand Down

0 comments on commit 6734d0f

Please sign in to comment.