@@ -124,9 +124,9 @@ def _run_interface(self, runtime):
124
124
sigma = mean_std * (1 + bias )
125
125
126
126
if sigma == 0 :
127
- IFLOGGER .warn ('Noise std is 0.0, looks like data was masked and '
128
- 'noise cannot be estimated correctly. Using default '
129
- 'tensor model instead of RESTORE.' )
127
+ IFLOGGER .warning ('Noise std is 0.0, looks like data was masked and '
128
+ 'noise cannot be estimated correctly. Using default '
129
+ 'tensor model instead of RESTORE.' )
130
130
dti = TensorModel (gtab )
131
131
else :
132
132
IFLOGGER .info ('Performing RESTORE with noise std=%.4f.' , sigma )
@@ -258,11 +258,11 @@ def _run_interface(self, runtime):
258
258
ratio = abs (response [1 ] / response [0 ])
259
259
260
260
if ratio > 0.25 :
261
- IFLOGGER .warn ('Estimated response is not prolate enough. '
262
- 'Ratio=%0.3f.' , ratio )
261
+ IFLOGGER .warning ('Estimated response is not prolate enough. '
262
+ 'Ratio=%0.3f.' , ratio )
263
263
elif ratio < 1.e-5 or np .any (np .isnan (response )):
264
264
response = np .array ([1.8e-3 , 3.6e-4 , 3.6e-4 , S0 ])
265
- IFLOGGER .warn (
265
+ IFLOGGER .warning (
266
266
'Estimated response is not valid, using a default one' )
267
267
else :
268
268
IFLOGGER .info ('Estimated response: %s' , str (response [:3 ]))
@@ -344,8 +344,8 @@ def _run_interface(self, runtime):
344
344
ratio = response [0 ][1 ] / response [0 ][0 ]
345
345
346
346
if abs (ratio - 0.2 ) > 0.1 :
347
- IFLOGGER .warn ('Estimated response is not prolate enough. '
348
- 'Ratio=%0.3f.' , ratio )
347
+ IFLOGGER .warning ('Estimated response is not prolate enough. '
348
+ 'Ratio=%0.3f.' , ratio )
349
349
350
350
csd_model = ConstrainedSphericalDeconvModel (
351
351
gtab , response , sh_order = self .inputs .sh_order )
0 commit comments