Skip to content

Commit

Permalink
Fix 'Name' key in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
valosekj committed Feb 2, 2024
1 parent 65f12d8 commit 5f22e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manual_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,12 @@ def update_json(fname_nifti, name_rater, modified):
json_dict = {'SpatialReference': 'orig',
'GeneratedBy': []}

# If the label was modified, add "Note": "Manually corrected" to the JSON sidecar
# If the label was modified, add "Name": "Manual" to the JSON sidecar
if modified:
json_dict['GeneratedBy'].append({'Name': 'Manually corrected',
'Author': name_rater,
'Date': time.strftime('%Y-%m-%d %H:%M:%S')})
# If the was not modified, add "Note": ""Visually verified"" to the JSON sidecar
# If the was not modified, add "Name": ""Visually verified"" to the JSON sidecar
else:
json_dict['GeneratedBy'].append({'Name': 'Visually verified',
'Author': name_rater,
Expand Down

0 comments on commit 5f22e18

Please sign in to comment.