Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 714bea2

Browse files
authored
Merge pull request #1 from flywheel-apps/patch-GEAR-1433
Change custom classification of non-MR
2 parents f1d4915 + bd9cbe0 commit 714bea2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dicom-mr-classifier.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ def dicom_classify(zip_file_path, outbase, timezone, config=None):
585585
# GEAR-1084, keep any custom classification already set.
586586
if not classification:
587587
classification = {'Custom': ['N/A']}
588+
elif dcm.get("Modality") != "MR":
589+
classification = {}
588590
dicom_file["classification"] = classification
589591

590592
# If no pixel data present, make classification intent "Non-Image"

0 commit comments

Comments
 (0)