Skip to content

Commit

Permalink
Add condition for create_json function when using '-add-seg-only' arg
Browse files Browse the repository at this point in the history
  • Loading branch information
valosekj committed Mar 2, 2023
1 parent 751a272 commit 461f54a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions manual_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,13 @@ def main():
# NOTE: QC for lesion segmentation does not exist or not implemented yet
else:
# create json sidecar with the name of the expert rater
modified = check_if_modified(time_one, time_two)
create_json(fname_label, name_rater, modified)
# Generate QC report
generate_qc(fname, fname_label, task, fname_qc, subject, args.config)
if args.add_seg_only:
create_json(fname_label, name_rater, modified)
else:
modified = check_if_modified(time_one, time_two)
create_json(fname_label, name_rater, modified)
# Generate QC report
generate_qc(fname, fname_label, task, fname_qc, subject, args.config)

# Generate QC report only
if args.qc_only:
Expand Down

0 comments on commit 461f54a

Please sign in to comment.