Skip to content

Commit

Permalink
Merge pull request #1 from flywheel-apps/patch-GEAR-1433
Browse files Browse the repository at this point in the history
Change custom classification of non-MR
  • Loading branch information
neurosutton authored Aug 3, 2021
2 parents f1d4915 + bd9cbe0 commit 714bea2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dicom-mr-classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,8 @@ def dicom_classify(zip_file_path, outbase, timezone, config=None):
# GEAR-1084, keep any custom classification already set.
if not classification:
classification = {'Custom': ['N/A']}
elif dcm.get("Modality") != "MR":
classification = {}
dicom_file["classification"] = classification

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

0 comments on commit 714bea2

Please sign in to comment.