-
Notifications
You must be signed in to change notification settings - Fork 429
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
BF - initial backward orientation of local tracking #2806
Conversation
Can you create a test to make sure we detect it next time ? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2806 +/- ##
=======================================
Coverage 81.47% 81.47%
=======================================
Files 144 144
Lines 20054 20063 +9
Branches 3192 3194 +2
=======================================
+ Hits 16339 16347 +8
- Misses 2906 2907 +1
Partials 809 809
|
I added the tests, which identify another minor bug, again at the junction of the forward and backward streamline segments, for probabilistic tracking. For the backward segment, I changed the tentative initial direction (peaks) to the true initial orientation (vector connecting the first and second points of the forward segment.). Since orientations are always sphere vertices for |
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.
Hi @gabknight,
Thank you for fixing this bug. See below my comments. I will look for an alternative to try/except
clause
Thank you for the update @gabknight! it seems there is still some issues with Windows as you can see below
I suppose |
Please enter the commit message for your changes. Lines starting
d14c991
to
6c8aecc
Compare
I created issue #2867 to address the random fct call problem in another PR. |
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.
Thank you @gabknight,
Looks good! Thanks for this work. merging
This address issue #2805.
dipy/tracking/localtrack.pyx
from 045a1eemax_angle
. This was fixed by changing the initial direction to the true first direction selected in the forward segment, instead of the tentative initial direction obtained from the peaks.