-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move utils.streamlines methods #950
Move utils.streamlines methods #950
Conversation
Hello @EmmaRenauld, Thank you for updating ! There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-03-27 12:42:11 UTC |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #950 +/- ##
==========================================
+ Coverage 66.86% 67.02% +0.16%
==========================================
Files 396 395 -1
Lines 21290 21289 -1
Branches 3225 3225
==========================================
+ Hits 14235 14269 +34
+ Misses 5756 5715 -41
- Partials 1299 1305 +6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read the code. Some minor comments. Good to go once they are addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTG
Quick description
All methods in
utils.streamlines
moved elsewhere.- Changed:
get_color_streamlines_from_angle
is now onlyget_angle
. The color is managed separately.- Changed:
get_color_streamlines_along_length
is now onlyget_values_along_length
. The color is managed separately.tractanalysis.feature
is renamedtractanalysis.bundle_operation
(it could also go intractograms
if you prefer). Some of its methods have been moved totractogram.tractogram_operations
ortractogram.streamline_operations
if they didn't really concern bundles.Script
scil_tractogram_assign_custom_color
strongly modified:- LUT was loaded but not used, and re-loaded later in sub-function.
- Sometimes, data was loaded as
data = ...
, sometimes asvalues, lbound, ubound = ...
, but actually, the same call toclip_and_normalize_data_for_cmap
was always done, just very unclear. That's why they are removed from the two methods described above.- Tried to remove access to hidden
._data
when possible.- Encapsulated main script to new dps_and_dpp_management method.
Type of change
Check the relevant options.
Checklist