Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'nipreps:main' into cli-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
esavary authored Apr 23, 2024
2 parents 552167d + 7f79390 commit d56d531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/eddymotion/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class EddyMotionEstimator:
"""Estimates rigid-body head-motion and distortions derived from eddy-currents."""

@staticmethod
def fit(
def estimate(
dwdata,
*,
align_kwargs=None,
Expand Down
4 changes: 3 additions & 1 deletion test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def test_proximity_estimator_trivial_model(datadir):
)

estimator = EddyMotionEstimator()
em_affines = estimator.fit(dwdata=dwi_motion, models=("b0",), align_kwargs=None, seed=None)
em_affines = estimator.estimate(
dwdata=dwi_motion, models=("b0",), align_kwargs=None, seed=None
)

# Uncomment to see the realigned dataset
# nt.linear.LinearTransformsMapping(
Expand Down

0 comments on commit d56d531

Please sign in to comment.