@@ -278,7 +278,7 @@ def create_workflow(files,
278
278
# Run Nipy joint slice timing and realignment algorithm
279
279
realign = Node (nipy .SpaceTimeRealigner (), name = 'realign' )
280
280
realign .inputs .tr = TR
281
- realign .inputs .slice_times = ( np . array ( slice_times ) / 1000. ). tolist ()
281
+ realign .inputs .slice_times = slice_times
282
282
realign .inputs .slice_info = 2
283
283
284
284
if despike :
@@ -679,6 +679,7 @@ def create_resting_workflow(args):
679
679
slice_thickness = None
680
680
if args .dicom_file :
681
681
TR , slice_times , slice_thickness = get_info (args .dicom_file )
682
+ slice_times = (np .array (slice_times )/ 1000. ).tolist ()
682
683
683
684
if slice_thickness is None :
684
685
from nibabel import load
@@ -719,9 +720,9 @@ def create_resting_workflow(args):
719
720
parser .add_argument ("--despike" , dest = "despike" , default = False ,
720
721
action = "store_true" , help = "Use despiked data" )
721
722
parser .add_argument ("--TR" , dest = "TR" , default = None ,
722
- help = "TR if dicom not provided" )
723
+ help = "TR if dicom not provided in seconds " )
723
724
parser .add_argument ("--slice_times" , dest = "slice_times" , nargs = "+" ,
724
- help = "Slice times" )
725
+ type = float , help = "Slice times in seconds " )
725
726
parser .add_argument ("-l" , "--lowpass_freq" , dest = "lowpass_freq" ,
726
727
default = - 1 , help = "Low pass frequency (Hz)" )
727
728
parser .add_argument ("-u" , "--highpass_freq" , dest = "highpass_freq" ,
0 commit comments