Skip to content

Commit

Permalink
remove orientation check for aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
louisblankemeier committed Nov 30, 2023
1 parent f93d6be commit 62e02ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comp2comp/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 62e02ab

Please sign in to comment.