@@ -443,7 +443,7 @@ class RealignUnwarpInputSpec(SPMCommandInputSpec):
443443 traits .Either (ImageFileSPM (exists = True ),
444444 traits .List (ImageFileSPM (exists = True ))),
445445 field = 'data.scans' ,
446- mandatory = True ,
446+ mandatory = True ,
447447 copyfile = True ,
448448 desc = 'list of filenames to realign and unwarp' )
449449 phase_map = File (
@@ -452,52 +452,52 @@ class RealignUnwarpInputSpec(SPMCommandInputSpec):
452452 'behaviour, the same map will be used for all sessions' ,
453453 copyfile = False )
454454 quality = traits .Range (
455- low = 0.0 ,
456- high = 1.0 ,
455+ low = 0.0 ,
456+ high = 1.0 ,
457457 field = 'eoptions.quality' ,
458458 desc = '0.1 = fast, 1.0 = precise' )
459459 fwhm = traits .Range (
460- low = 0.0 ,
460+ low = 0.0 ,
461461 field = 'eoptions.fwhm' ,
462462 desc = 'gaussian smoothing kernel width' )
463463 separation = traits .Range (
464- low = 0.0 ,
464+ low = 0.0 ,
465465 field = 'eoptions.sep' ,
466466 desc = 'sampling separation in mm' )
467467 register_to_mean = traits .Bool (
468468 field = 'eoptions.rtm' ,
469469 desc = 'Indicate whether realignment is done to the mean image' )
470470 weight_img = File (
471- exists = True ,
471+ exists = True ,
472472 field = 'eoptions.weight' ,
473473 desc = 'filename of weighting image' )
474474 interp = traits .Range (
475- low = 0 ,
476- high = 7 ,
475+ low = 0 ,
476+ high = 7 ,
477477 field = 'eoptions.einterp' ,
478478 desc = 'degree of b-spline used for interpolation' )
479479 wrap = traits .List (
480- traits .Int (),
481- minlen = 3 ,
480+ traits .Int (),
481+ minlen = 3 ,
482482 maxlen = 3 ,
483483 field = 'eoptions.ewrap' ,
484484 desc = 'Check if interpolation should wrap in [x,y,z]' )
485485 est_basis_func = traits .List (
486- traits .Int (),
487- minlen = 2 ,
486+ traits .Int (),
487+ minlen = 2 ,
488488 maxlen = 2 ,
489489 field = 'uweoptions.basfcn' ,
490490 desc = 'Number of basis functions to use for each dimension' )
491491 est_reg_order = traits .Range (
492- low = 0 ,
493- high = 3 ,
492+ low = 0 ,
493+ high = 3 ,
494494 field = 'uweoptions.regorder' ,
495495 desc = ('This parameter determines how to balance the compromise between likelihood '
496496 'maximization and smoothness maximization of the estimated field.' ))
497497 est_reg_factor = traits .ListInt (
498- [100000 ],
498+ [100000 ],
499499 field = 'uweoptions.lambda' ,
500- minlen = 1 ,
500+ minlen = 1 ,
501501 maxlen = 1 ,
502502 usedefault = True ,
503503 desc = 'Regularisation factor. Default: 100000 (medium).' )
@@ -506,60 +506,60 @@ class RealignUnwarpInputSpec(SPMCommandInputSpec):
506506 desc = ('Jacobian deformations. In theory a good idea to include them, '
507507 ' in practice a bad idea. Default: No.' ))
508508 est_first_order_effects = traits .List (
509- traits .Int (),
510- minlen = 1 ,
509+ traits .Int (),
510+ minlen = 1 ,
511511 maxlen = 6 ,
512512 field = 'uweoptions.fot' ,
513513 desc = 'First order effects should only depend on pitch and roll, i.e. [4 5]' )
514514 est_second_order_effects = traits .List (
515- traits .Int (),
516- minlen = 1 ,
515+ traits .Int (),
516+ minlen = 1 ,
517517 maxlen = 6 ,
518518 field = 'uweoptions.sot' ,
519519 desc = 'List of second order terms to model second derivatives of.' )
520520 est_unwarp_fwhm = traits .Range (
521- low = 0.0 ,
521+ low = 0.0 ,
522522 field = 'uweoptions.uwfwhm' ,
523523 desc = 'gaussian smoothing kernel width for unwarp' )
524524 est_re_est_mov_par = traits .Bool (
525525 field = 'uweoptions.rem' ,
526526 desc = 'Re-estimate movement parameters at each unwarping iteration.' )
527527 est_num_of_iterations = traits .ListInt (
528- [5 ],
528+ [5 ],
529529 field = 'uweoptions.noi' ,
530- minlen = 1 ,
531- maxlen = 1 ,
530+ minlen = 1 ,
531+ maxlen = 1 ,
532532 usedefault = True ,
533533 desc = 'Number of iterations.' )
534534 est_taylor_expansion_point = traits .String (
535- 'Average' ,
535+ 'Average' ,
536536 field = 'uweoptions.expround' ,
537537 usedefault = True ,
538538 desc = 'Point in position space to perform Taylor-expansion around.' )
539539 reslice_which = traits .ListInt (
540- [2 , 1 ],
540+ [2 , 1 ],
541541 field = 'uwroptions.uwwhich' ,
542- minlen = 2 ,
543- maxlen = 2 ,
542+ minlen = 2 ,
543+ maxlen = 2 ,
544544 usedefault = True ,
545545 desc = 'determines which images to reslice' )
546546 reslice_interp = traits .Range (
547- low = 0 ,
548- high = 7 ,
547+ low = 0 ,
548+ high = 7 ,
549549 field = 'uwroptions.rinterp' ,
550550 desc = 'degree of b-spline used for interpolation' )
551551 reslice_wrap = traits .List (
552- traits .Int (),
553- minlen = 3 ,
552+ traits .Int (),
553+ minlen = 3 ,
554554 maxlen = 3 ,
555555 field = 'uwroptions.wrap' ,
556556 desc = 'Check if interpolation should wrap in [x,y,z]' )
557557 reslice_mask = traits .Bool (
558558 field = 'uwroptions.mask' ,
559559 desc = 'True/False mask output image' )
560560 out_prefix = traits .String (
561- 'u' ,
562- field = 'uwroptions.prefix' ,
561+ 'u' ,
562+ field = 'uwroptions.prefix' ,
563563 usedefault = True ,
564564 desc = 'realigned and unwarped output prefix' )
565565
@@ -585,7 +585,7 @@ class RealignUnwarpOutputSpec(TraitedSpec):
585585
586586class RealignUnwarp (SPMCommand ):
587587 """Use spm_uw_estimate for estimating within subject registration and unwarping
588- of time series. Function accepts only one single field map. If in_files is a
588+ of time series. Function accepts only one single field map. If in_files is a
589589 list of files they will be treated as separate sessions but associated to the
590590 same fieldmap.
591591
@@ -617,7 +617,7 @@ def _format_arg(self, opt, spec, val):
617617 keep4d = False ,
618618 separate_sessions = True )
619619 return super (RealignUnwarp , self )._format_arg (opt , spec , val )
620-
620+
621621
622622 def _parse_inputs (self , skip = ()):
623623
@@ -630,7 +630,7 @@ def _parse_inputs(self, skip=()):
630630
631631 if isdefined (self .inputs .in_files ):
632632 if isinstance (self .inputs .in_files , list ):
633- data = [dict (scans = sess , pmscan = pmscan )
633+ data = [dict (scans = sess , pmscan = pmscan )
634634 for sess in spmdict ['data' ]['scans' ]]
635635 else :
636636 data = [dict (scans = spmdict ['data' ]['scans' ], pmscan = pmscan )]
0 commit comments