-
Notifications
You must be signed in to change notification settings - Fork 65
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
Hyperplane update #1034
base: master
Are you sure you want to change the base?
Hyperplane update #1034
Conversation
Hello @frheault, Thank you for updating !
Comment last updated at 2024-12-12 18:45:11 UTC |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1034 +/- ##
===========================================
- Coverage 72.95% 58.87% -14.09%
===========================================
Files 448 651 +203
Lines 24398 30496 +6098
Branches 3345 3429 +84
===========================================
+ Hits 17799 17953 +154
- Misses 5170 11099 +5929
- Partials 1429 1444 +15
🚀 New features to boost your workflow:
|
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.
Complicated code I don't fully understand, but apart from a few missing or incomplete docstring I didn't come across anything shocking. Also looks like there are a lot of remaining PEP8 issues.
@AntoineTheb Last time you tried that branch, everything was fine with the input/output? |
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.
few comments but LGTM:
flake8 scilpy/tractograms/streamline_and_mask_operations.py
scilpy/tractograms/streamline_and_mask_operations.py:634:5: F841 local variable 'orig_segment_len' is assigned to but never used
sft_centroid.to_vox() | ||
sft.to_corner() | ||
sft_centroid.to_corner() | ||
# TODO DOCSTRING ! |
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.
@frheault still missing docstring here
All good (I think), probably ready for merge? |
@frheault there are still a lot of pep8 issues to fix. Also the |
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.
Round of review. Mostly needs more comments to explain what the code is doing and why, and needs more cleanup. Functions need to be split into smaller chunks and pep8 issues need to be fixed.
target_labels[curr_ind:curr_ind+len(streamline)] = curr_labels | ||
curr_ind += len(streamline) | ||
|
||
return target_labels, target_sft.streamlines._data |
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.
why is the target sft's data returned here ? It doesn't look like it's used in the function.
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.
Thanks for the extensive documentation. Single comment on the references in your main script below.
Quick description
Attempt at having our improved RADTRACT Hyperplane subdivision !
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10246281/
...
Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
...
Checklist