-
Notifications
You must be signed in to change notification settings - Fork 16
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
ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model #59
ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model #59
Conversation
Hello @sebastientourbier! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-04-07 18:27:49 UTC |
eddymotion/tests/test_integration.py
Outdated
reference=fixed_b0_img | ||
) | ||
assert np.all( | ||
abs(xfm.map(xfm.reference.ndcoords.T) - xfm2.map(xfm.reference.ndcoords.T)) < 0.4 |
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.
Where is 0.4 coming from out of curiosity? I'm guessing this is just unique to this test-data case?
6c01f59
to
cba93d8
Compare
…y `test_proximity_estimator_trivial_model`
…ator_trivial_model`
58b03ab
to
a9e67cc
Compare
…tion-b0-model ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
…tion-b0-model ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
…-model ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model Former-commit-id: 8de089f
Part of #40, this PR includes the following:
A notebook in
docs/notebooks
that I created to reproduce all the steps required for the creation of the data used in the integration. All details for the generation can be found there.A set of files for the integration test:
b0.moving.nii.gz
: 4D volume where the first 3D volume is the original b0, followed by 10 b0 volumes transformed with the motion parameters estimated from the last 10 frames of the fMRI recordinggradients.moving.tsv
: Fake RAS+B gradient table for the 10 moving b0 volumesb0.moving.transforms.npy
: A Numpy array of size (4x4x10) that stores the transforms estimated from fMRIA new function
test_proximity_estimator_trivial_model()
that uses the set of files and checks the proximity of the transforms estimated byEddyMotionEstimator
with a trivial B0 model.