From bbfb6506d2a11cccc9d81402ca5b193a0007a26b Mon Sep 17 00:00:00 2001 From: valosekj Date: Tue, 30 Jan 2024 16:27:45 -0500 Subject: [PATCH] Add 'SpatialReference': 'orig' key-value pair based on https://github.com/spinalcordtoolbox/manual-correction/pull/76#issuecomment-1912384077 --- manual_correction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manual_correction.py b/manual_correction.py index f5046a4..fa7a590 100644 --- a/manual_correction.py +++ b/manual_correction.py @@ -520,7 +520,8 @@ def update_json(fname_nifti, name_rater, modified): # If the json file does not exist, initialize a new one else: # Init new json dict - json_dict = {'GeneratedBy': []} + json_dict = {'SpatialReference': 'orig', + 'GeneratedBy': []} # If the label was modified, add "Note": "Manually corrected" to the JSON sidecar if modified: