Skip to content

Commit

Permalink
fix: ndi.center_of_mass needs an actual array
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 29, 2025
1 parent fe5bde1 commit 95b0fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmriprep/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _run_interface(self, runtime):
# No rotation is applied.
center_of_gravity = np.matmul(

Check warning on line 118 in fmriprep/interfaces/confounds.py

View check run for this annotation

Codecov / codecov/patch

fmriprep/interfaces/confounds.py#L118

Added line #L118 was not covered by tests
np.diag(boldref.header.get_zooms()),
ndi.center_of_mass(boldref.dataobj),
ndi.center_of_mass(np.asanyarray(boldref.dataobj)),
)

# Revert to vox2vox transforms
Expand Down

0 comments on commit 95b0fd7

Please sign in to comment.