Skip to content
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

Merged

Conversation

sebastientourbier
Copy link
Contributor

@sebastientourbier sebastientourbier commented Nov 11, 2021

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 recording
    • gradients.moving.tsv: Fake RAS+B gradient table for the 10 moving b0 volumes
    • b0.moving.transforms.npy: A Numpy array of size (4x4x10) that stores the transforms estimated from fMRI
  • A new function test_proximity_estimator_trivial_model() that uses the set of files and checks the proximity of the transforms estimated by EddyMotionEstimator with a trivial B0 model.

@pep8speaks
Copy link

pep8speaks commented Nov 11, 2021

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

reference=fixed_b0_img
)
assert np.all(
abs(xfm.map(xfm.reference.ndcoords.T) - xfm2.map(xfm.reference.ndcoords.T)) < 0.4
Copy link
Contributor

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?

@oesteban oesteban force-pushed the enh-test-integration-b0-model branch from 6c01f59 to cba93d8 Compare April 5, 2022 13:52
@oesteban oesteban force-pushed the enh-test-integration-b0-model branch from 58b03ab to a9e67cc Compare April 7, 2022 18:27
@oesteban oesteban merged commit 8de089f into nipreps:main Apr 7, 2022
arokem pushed a commit that referenced this pull request Jun 24, 2022
…-model

ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
Former-commit-id: 8de089f
Former-commit-id: 3bbaa11
arokem pushed a commit that referenced this pull request Jun 24, 2022
…-model

ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
Former-commit-id: c87f266 [formerly 8de089f]
Former-commit-id: 3bbaa11
Former-commit-id: 8210485
mathdugre pushed a commit to mathdugre/eddymotion that referenced this pull request Jun 24, 2022
…tion-b0-model

ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
mathdugre pushed a commit to mathdugre/eddymotion that referenced this pull request Jun 24, 2022
…tion-b0-model

ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
oesteban added a commit that referenced this pull request Jun 30, 2022
…-model

ENH: Add integration test with data for EddyMotionEstimator using the trivial b0 model
Former-commit-id: 8de089f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants