Skip to content

Commit 47352f7

Browse files
committed
fixes
1 parent cd07a64 commit 47352f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/confounds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,19 +599,19 @@ class NonSteadyStateDetector(BaseInterface):
599599
output_spec = NonSteadyStateDetectorOutputSpec
600600

601601
def _run_interface(self, runtime):
602-
in_nii = nb.load(self.inputs.in_plots)
602+
in_nii = nb.load(self.inputs.in_file)
603603
global_signal = in_nii.get_data()[:,:,:,:50].mean(axis=0).mean(axis=0).mean(axis=0)
604604

605605
self._results = {
606-
'out_file': _is_outlier(global_signal)
606+
'n_volumes_to_discard': _is_outlier(global_signal)
607607
}
608608

609609
return runtime
610610

611611
def _list_outputs(self):
612612
return self._results
613613

614-
def _is_outlier(points, thresh=3.5):
614+
def is_outlier(points, thresh=3.5):
615615
"""
616616
Returns a boolean array with True if points are outliers and False
617617
otherwise.

0 commit comments

Comments
 (0)