From 62e02ab4f1506ea63f902bc5a06ebc35c76c17d3 Mon Sep 17 00:00:00 2001 From: Louis Blankemeier Date: Wed, 29 Nov 2023 20:10:46 -0800 Subject: [PATCH] remove orientation check for aaa --- comp2comp/io/io.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comp2comp/io/io.py b/comp2comp/io/io.py index b3e12c3..6b83797 100644 --- a/comp2comp/io/io.py +++ b/comp2comp/io/io.py @@ -124,12 +124,12 @@ def series_selector(dicom_path, pipeline_name=None): raise ValueError("Not primary image type") if not any("original" in s.lower() for s in image_type_list): raise ValueError("Not original image type") + if ds.ImageOrientationPatient != [1, 0, 0, 0, 1, 0]: + raise ValueError("Image orientation is not axial") else: - print(f"Skipping primary and original image type check for the {pipeline_name} pipeline.") + print(f"Skipping primary, original, and orientation image type check for the {pipeline_name} pipeline.") # if any("gsi" in s.lower() for s in image_type_list): # raise ValueError("GSI image type") - if ds.ImageOrientationPatient != [1, 0, 0, 0, 1, 0]: - raise ValueError("Image orientation is not axial") return ds