scilus / scilpy

The Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox
Other
62 stars 60 forks source link

Script dps math #1066

Open VincentBeaud opened 1 day ago

VincentBeaud commented 1 day ago

Quick description

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.

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

codecov[bot] commented 1 day ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.44%. Comparing base (4d2715b) to head (5fa929c).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1066 +/- ## ========================================== + Coverage 69.41% 69.44% +0.02% ========================================== Files 447 447 Lines 24046 24061 +15 Branches 3280 3285 +5 ========================================== + Hits 16691 16708 +17 + Misses 5960 5959 -1 + Partials 1395 1394 -1 ``` | [Components](https://app.codecov.io/gh/scilus/scilpy/pull/1066/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | Coverage Δ | | |---|---|---| | [Scripts](https://app.codecov.io/gh/scilus/scilpy/pull/1066/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `70.31% <100.00%> (+0.03%)` | :arrow_up: | | [Library](https://app.codecov.io/gh/scilus/scilpy/pull/1066/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `68.27% <ø> (+0.01%)` | :arrow_up: |