Skip to content

Commit

Permalink
argument processing improvements
Browse files Browse the repository at this point in the history
Co-authored-by: Casper da Costa-Luis <[email protected]>
  • Loading branch information
KrisThielemans and casperdcl authored Oct 9, 2024
1 parent 679d77b commit 0436d4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SIRF_data_preparation/create_Hoffman_VOIs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
if scanID is None:
print("Need to set the --dataset argument")
exit(1)
if (args["--skip_write_PETRIC_VOIs"] is not None) and args["--skip_write_PETRIC_VOIs"]:
if args["--skip_write_PETRIC_VOIs"]:
write_PETRIC_VOIs = False
else:
# set it by hand, e.g.
Expand Down
3 changes: 1 addition & 2 deletions SIRF_data_preparation/get_penalisation_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
if dataset is None or ref_dataset is None:
print("Need to set the --dataset arguments")
exit(1)
if args["--write_penalisation_factor"] is not None:
write_penalisation_factor = args["--write_penalisation_factor"]
write_penalisation_factor = args["--write_penalisation_factor"]

else: # set it by hand, e.g.
ref_dataset = "NeuroLF_Hoffman_Dataset"
Expand Down
2 changes: 1 addition & 1 deletion SIRF_data_preparation/run_BSREM.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# logging.basicConfig(level=logging.INFO)

scanID = args['<data_set>']
num_updates = args['--updates']
num_updates = int(args['--updates'])
print(f"num_updates {num_updates}")

if not all((SRCDIR.is_dir(), OUTDIR.is_dir())):
Expand Down

0 comments on commit 0436d4d

Please sign in to comment.