Skip to content

Commit

Permalink
fix: explicitly assign t_r after clean_img in fMRIPrepConfoundRemover
Browse files Browse the repository at this point in the history
  • Loading branch information
synchon committed Jan 22, 2025
1 parent fd8cfc2 commit 76075e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions junifer/preprocess/confounds/fmriprep_confound_remover.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ def preprocess(
t_r=t_r,
mask_img=mask_img,
)
# Fix t_r as nilearn messes it up
cleaned_img.header["pixdim"][4] = t_r
# Save deconfounded data
deconfounded_img_path = element_tempdir / "deconfounded_data.nii.gz"
nib.save(cleaned_img, deconfounded_img_path)
Expand Down

0 comments on commit 76075e9

Please sign in to comment.