Skip to content

Commit

Permalink
use bundle instead of seg
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Sep 21, 2023
1 parent a6d8724 commit d4984f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AFQ/tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_fname(base_fname, suffix,
)
if segmentation_params is not None and 'seg_algo' in segmentation_params:
seg_algo = segmentation_params['seg_algo']
fname = fname + f"_segalgo-{seg_algo}"
fname = fname + f"_bundlerec-{seg_algo}"

return fname + suffix

Expand Down
6 changes: 3 additions & 3 deletions AFQ/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,12 +857,12 @@ def test_AFQ_data_waypoint():
assert op.exists(op.join(
myafq.export("results_dir"),
"viz_bundles",
'sub-01_ses-01_coordsys-RASMM_trkmodel-probCSD_segalgo-AFQ_desc-SLFLviz_dwi.html')) # noqa
'sub-01_ses-01_coordsys-RASMM_trkmodel-probCSD_bundlerec-AFQ_desc-SLFLviz_dwi.html')) # noqa

assert op.exists(op.join(
myafq.export("results_dir"),
"viz_bundles",
'sub-01_ses-01_coordsys-RASMM_trkmodel-probCSD_segalgo-AFQ_desc-SLFLviz_dwi.html')) # noqa
'sub-01_ses-01_coordsys-RASMM_trkmodel-probCSD_bundlerec-AFQ_desc-SLFLviz_dwi.html')) # noqa

# Before we run the CLI, we'll remove the bundles and ROI folders, to see
# that the CLI generates them
Expand Down Expand Up @@ -938,4 +938,4 @@ def test_AFQ_data_waypoint():
assert op.exists(op.join(
results_dir,
'bundles',
'sub-01_ses-01_coordsys-RASMM_trkmodel-probCSD_segalgo-AFQ_desc-SLFL_tractography.trk')) # noqa
'sub-01_ses-01_coordsys-RASMM_trkmodel-probCSD_bundlerec-AFQ_desc-SLFL_tractography.trk')) # noqa

0 comments on commit d4984f3

Please sign in to comment.