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
Faster dti odf #1064
Faster dti odf #1064
Conversation
This saves a little bit of time for the case in scratch/profile_dti.py: this branch: 48.5043 s But should save substantially more time when a mask is used. |
This one is also an easy review: <40 lines of changed code for a 12% speedup for something that some users probably do 20 times a day. Any one want to take a look? |
LGTM. It avoids divisions by zero and simplifies the code. |
1156d3a
to
767bb04
Compare
Thanks for taking a look. Now also rebased for ease of merging. |
@arokem : it seems the rebase went wrong? |
767bb04
to
67b349f
Compare
Looks like Travis was having a hard time connecting to Github. I just repushed that last commit. |
Current coverage is 84.61% (diff: 100%)@@ master #1064 diff @@
==========================================
Files 217 219 +2
Lines 24593 24879 +286
Methods 0 0
Messages 0 0
Branches 2491 2515 +24
==========================================
+ Hits 19888 21051 +1163
+ Misses 4194 3199 -995
- Partials 511 629 +118
|
1 similar comment
@arokem: Should I wait for you to add a small test that actually uses the mask (see codecov)? |
oh yeah - thats no good. please wait. ill get to it in the weekend, i hope On Oct 26, 2016 2:19 PM, "Marc-Alexandre Côté" notifications@github.com @arokem https://github.com/arokem: Should I wait for you to add a small — |
How about this? On my machine, the |
Excellent! |
Speeds up DTI odf calculation, by calculating it only over regions of the volume that have non-zero eigen-values.