We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28b58f commit 576e522Copy full SHA for 576e522
petprep/workflows/pet/confounds.py
@@ -28,7 +28,6 @@
28
29
"""
30
31
-from nipype.algorithms import confounds as nac
32
from nipype.interfaces import utility as niu
33
from nipype.pipeline import engine as pe
34
from templateflow.api import get as get_template
@@ -565,9 +564,11 @@ def init_carpetplot_wf(
565
564
566
def _compute_dvars(pet, mask):
567
"""Compute DVARS only when the timeseries has at least three frames."""
568
- import numpy as np
569
- import nibabel as nb
570
from pathlib import Path
+
+ import nibabel as nb
+ import numpy as np
571
572
from nipype.algorithms import confounds as nac
573
574
nvols = nb.load(pet).shape[-1]
0 commit comments