Replace scil_tractogram_add_dps.py for a more general version scil_tractogram_dps_math.py. This new script allows "add", "delete" and "export" operations on data-per-streamline.
Type of change
Check the relevant options.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Provide data, screenshots, command line to test (if relevant)
Example: I want to extract the seeds from tractogram.trk. I use the following command line.
scil_tractogram_dps_math tractogram.trk export --export_dps_key seeds --export_dps_file seeds.txt
Checklist
[x] My code follows the style guidelines of this project (run autopep8)
[x] I added relevant citations to scripts, modules and functions docstrings and descriptions
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I moved all functions from the script file (except the argparser and main) to scilpy modules
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Quick description
Replace
scil_tractogram_add_dps.py
for a more general versionscil_tractogram_dps_math.py
. This new script allows "add", "delete" and "export" operations on data-per-streamline.Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
Example: I want to extract the seeds from
tractogram.trk
. I use the following command line.scil_tractogram_dps_math tractogram.trk export --export_dps_key seeds --export_dps_file seeds.txt
Checklist