-
Notifications
You must be signed in to change notification settings - Fork 60
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
Easy tests reconst #982
Easy tests reconst #982
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #982 +/- ##
==========================================
+ Coverage 68.00% 68.04% +0.03%
==========================================
Files 419 419
Lines 21569 21574 +5
Branches 3242 3244 +2
==========================================
+ Hits 14668 14679 +11
+ Misses 5609 5605 -4
+ Partials 1292 1290 -2
|
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.
Two small comments and it's GTG!
scilpy/reconst/fodf.py
Outdated
# 1000 works well at 2x2x2 = 8 mm3 | ||
# Hence, we multiply by the volume of a voxel | ||
vol = (zoom[0] * zoom[1] * zoom[2]) | ||
if vol != 0: | ||
max_number_of_voxels = 1000 * 8 // vol | ||
else: | ||
max_number_of_voxels = 1000 | ||
logging.debug("We will search ventricle voxels, up to a maximum of {} " |
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.
"Searching for ventricle voxels" perhaps? Not a fan of "we will"
scilpy/reconst/frf.py
Outdated
containing a single fiber population are found using either a threshold on | ||
the FA, inside a white matter mask. | ||
|
||
Requires |
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.
Requires what?
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
Took a few minutes today to prepare some unit test in the reconst module.
Coverage of unit test changes (only; no script tests) are:
reconst.fodf
: from 0% to 36%reconst.frf
: from 0% to 49%Unchanged reconst files:
reconst.aodf
= 0% (@CHrlS98 if you want to contribute)!reconst.bingham
= 88% (Thanks Charles)reconst.divide, reconst.mti, reconst.sh
= 0% (@karanphil if you want to contribute!?)reconst.utils
: 36%Type of change
Check the relevant options.
Checklist