From 6734d0f4ea3d5aee6e8d8f9957dd23151c4392ff Mon Sep 17 00:00:00 2001 From: bpinsard Date: Wed, 25 Sep 2024 10:15:41 -0400 Subject: [PATCH] fix mypy with assert --- heudiconv/convert.py | 1 + 1 file changed, 1 insertion(+) diff --git a/heudiconv/convert.py b/heudiconv/convert.py index 33e93817..84c036a2 100644 --- a/heudiconv/convert.py +++ b/heudiconv/convert.py @@ -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],