Skip to content

Commit d717e53

Browse files
author
tergeorge
committed
modified func_preproc.py so that stop_tr can be assigned the value End
1 parent fa959a4 commit d717e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CPAC/func_preproc/func_preproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def get_idx(in_files, stop_idx=None, start_idx=None):
574574
else:
575575
startidx = int(start_idx)
576576

577-
if (stop_idx == None) or (int(stop_idx) > (nvols - 1)):
577+
if (stop_idx in [None, "End"]) or (int(stop_idx) > (nvols - 1)):
578578
stopidx = nvols - 1
579579
else:
580580
stopidx = int(stop_idx)

0 commit comments

Comments
 (0)