Skip to content

Commit

Permalink
Bug inside DVARS compute
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Mar 20, 2024
1 parent 5b9a532 commit cfec2f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions narps_open/core/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def _run_interface(self, runtime):
""" Run the DVARS computation and identify corrupted points """

# Compute DVARS
dvars_output = DVARS_Calc(self.inputs.in_file)
= DVARS_Calc(self.inputs.in_file)

# Identify corrupted points
#% find(Stat.pvals<0.05./(T-1) & Stat.DeltapDvar>5) %print corrupted DVARS data-points
pvalues = [e < (0.05/(nb_time_points-1)) for e in dvars_output['Inference']['Pval']]
deltapdvar = [e > 5 for e in dvars_output['DVARS']['DeltapDvar']]
pvalues = [e < (0.05/(self.inputs.nb_time_points-1)) for e in dvars['Inference']['Pval']]
deltapdvar = [e > 5 for e in dvars['DVARS']['DeltapDvar']]

# Write result to file
with open(abspath(self.inputs.out_file_name + '.txt'), 'w') as file:
Expand Down

0 comments on commit cfec2f0

Please sign in to comment.