@@ -123,13 +123,12 @@ def _run_interface(self, runtime):
123123 sigma = mean_std * (1 + bias )
124124
125125 if sigma == 0 :
126- IFLOGGER .warn (
127- ('Noise std is 0.0, looks like data was masked and noise'
128- ' cannot be estimated correctly. Using default tensor '
129- 'model instead of RESTORE.' ))
126+ IFLOGGER .warn ('Noise std is 0.0, looks like data was masked and noise '
127+ 'cannot be estimated correctly. Using default tensor '
128+ 'model instead of RESTORE.' )
130129 dti = TensorModel (gtab )
131130 else :
132- IFLOGGER .info (( 'Performing RESTORE with noise std=%.4f.' ) % sigma )
131+ IFLOGGER .info ('Performing RESTORE with noise std=%.4f.' , sigma )
133132 dti = TensorModel (gtab , fit_method = 'RESTORE' , sigma = sigma )
134133
135134 try :
@@ -252,14 +251,13 @@ def _run_interface(self, runtime):
252251 ratio = abs (response [1 ] / response [0 ])
253252
254253 if ratio > 0.25 :
255- IFLOGGER .warn (( 'Estimated response is not prolate enough. '
256- 'Ratio=%0.3f.' ) % ratio )
254+ IFLOGGER .warn ('Estimated response is not prolate enough. '
255+ 'Ratio=%0.3f.' , ratio )
257256 elif ratio < 1.e-5 or np .any (np .isnan (response )):
258257 response = np .array ([1.8e-3 , 3.6e-4 , 3.6e-4 , S0 ])
259- IFLOGGER .warn (
260- ('Estimated response is not valid, using a default one' ))
258+ IFLOGGER .warn ('Estimated response is not valid, using a default one' )
261259 else :
262- IFLOGGER .info (( 'Estimated response: %s' ) % str (response [:3 ]))
260+ IFLOGGER .info ('Estimated response: %s' , str (response [:3 ]))
263261
264262 np .savetxt (op .abspath (self .inputs .response ), response )
265263
@@ -343,8 +341,8 @@ def _run_interface(self, runtime):
343341 ratio = response [0 ][1 ] / response [0 ][0 ]
344342
345343 if abs (ratio - 0.2 ) > 0.1 :
346- IFLOGGER .warn (( 'Estimated response is not prolate enough. '
347- 'Ratio=%0.3f.' ) % ratio )
344+ IFLOGGER .warn ('Estimated response is not prolate enough. '
345+ 'Ratio=%0.3f.' , ratio )
348346
349347 csd_model = ConstrainedSphericalDeconvModel (
350348 gtab , response , sh_order = self .inputs .sh_order )
0 commit comments