File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed 
niworkflows/workflows/epi Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def init_epi_reference_wf(
3434    omp_nthreads ,
3535    auto_bold_nss = False ,
3636    name = 'epi_reference_wf' ,
37-     n4_iterations = (50 ,)* 5 ,
37+     n4_iterations = (50 ,)  *   5 ,
3838    n4_shrink_factor = 4 ,
3939    calculate_bspline_grid = False ,
4040):
@@ -269,13 +269,14 @@ def _post_merge(in_file, in_xfms):
269269
270270
271271def  _bspline_grid (in_file ):
272+     import  math 
273+ 
272274    import  nibabel  as  nb 
273275    import  numpy  as  np 
274-     import  math 
275276
276277    img  =  nb .load (in_file )
277278    zooms  =  img .header .get_zooms ()[:3 ]
278279    extent  =  (np .array (img .shape [:3 ]) -  1 ) *  zooms 
279280    # get mesh resolution ratio 
280281    retval  =  [f'{ math .ceil (i  /  extent [np .argmin (extent )])}  '  for  i  in  extent ]
281-     return  f" -b [{ 'x' .join (retval )}  ]"  
282+     return  f' -b [{ "x" .join (retval )}  ]'  
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments