Skip to content

Commit

Permalink
Fixed indexing bug. nipype interface output should be zero indexed, n…
Browse files Browse the repository at this point in the history
…ot 1-indexed
  • Loading branch information
Bogdan Petre committed Oct 30, 2024
1 parent a3beac4 commit 18d7da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified nipype/canlabCore/__pycache__/preproc.cpython-39.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion nipype/canlabCore/preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def _run_interface(self, runtime):
varargin=[varargin, {'fd_thresh', $fd_thresh}];
end
[~,~,outlier_tables] = outliers(fmri_data(in_file), varargin{:});
outlier_ind = find(any(outlier_tables.outlier_regressor_matrix_corr,2))
outlier_ind = find(any(outlier_tables.outlier_regressor_matrix_corr,2));
# python-like 0-index
outlier_ind = outlier_ind - 1;
csvwrite(out_file, outlier_ind);
exit;
"""
Expand Down

0 comments on commit 18d7da5

Please sign in to comment.