Skip to content

Commit

Permalink
Fix bug when no config output given
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBeaud committed Sep 12, 2024
1 parent 3f3cfef commit afe7e5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/scil_fibertube_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ def main():
out_sft.data_per_streamline['seeds'] = seeds
save_tractogram(out_sft, args.out_tractogram)

config = {
'step_size': args.step_size,
'blur_radius': args.blur_radius,
'nb_fibers': args.nb_fibers,
'nb_seeds_per_fiber': args.nb_seeds_per_fiber
}
if args.out_config:
config = {
'step_size': args.step_size,
'blur_radius': args.blur_radius,
'nb_fibers': args.nb_fibers,
'nb_seeds_per_fiber': args.nb_seeds_per_fiber
}
with open(args.out_config, 'w') as outfile:
json.dump(config, outfile,
indent=args.indent, sort_keys=args.sort_keys)
Expand Down

0 comments on commit afe7e5d

Please sign in to comment.