From 3f6ffaf2789c995b1bed9f1d3735b93cfb0c9d63 Mon Sep 17 00:00:00 2001 From: Nathan Richman <68390038+naterichman@users.noreply.github.com> Date: Wed, 22 Sep 2021 11:06:51 -0500 Subject: [PATCH 1/2] BUG: Set non-image intent to array. Classification values must be an array, this version set it as a string which introduced validation errors. --- dicom-mr-classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dicom-mr-classifier.py b/dicom-mr-classifier.py index 959e283..68149f2 100755 --- a/dicom-mr-classifier.py +++ b/dicom-mr-classifier.py @@ -593,7 +593,7 @@ def dicom_classify(zip_file_path, outbase, timezone, config=None): # If no pixel data present, make classification intent "Non-Image" if not hasattr(dcm, "PixelData"): - nonimage_intent = "Non-Image" + nonimage_intent = ["Non-Image"] # If classification is a dict, update dict with intent if isinstance(dicom_file["classification"], dict): classification = dicom_file['classification'] From bbf89f47a995262ef75ecefa33ae2c4dc8ccebe2 Mon Sep 17 00:00:00 2001 From: Nate Richman Date: Wed, 22 Sep 2021 13:09:14 -0500 Subject: [PATCH 2/2] MAIN: Bump version --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index f1d55c0..612bbcf 100644 --- a/manifest.json +++ b/manifest.json @@ -8,10 +8,10 @@ "source": "https://github.com/flywheel-apps/dicom-mr-classifier/releases", "license": "Apache-2.0", "flywheel": "0", - "version": "1.4.6", + "version": "1.4.7", "custom": { "gear-builder": { - "image": "flywheel/dicom-mr-classifier:1.4.6", + "image": "flywheel/dicom-mr-classifier:1.4.7", "category": "converter" }, "flywheel": {