@@ -124,9 +124,9 @@ def _run_interface(self, runtime):
124124 sigma = mean_std * (1 + bias )
125125
126126 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.' )
130130 dti = TensorModel (gtab )
131131 else :
132132 IFLOGGER .info ('Performing RESTORE with noise std=%.4f.' , sigma )
@@ -258,11 +258,11 @@ def _run_interface(self, runtime):
258258 ratio = abs (response [1 ] / response [0 ])
259259
260260 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 )
263263 elif ratio < 1.e-5 or np .any (np .isnan (response )):
264264 response = np .array ([1.8e-3 , 3.6e-4 , 3.6e-4 , S0 ])
265- IFLOGGER .warn (
265+ IFLOGGER .warning (
266266 'Estimated response is not valid, using a default one' )
267267 else :
268268 IFLOGGER .info ('Estimated response: %s' , str (response [:3 ]))
@@ -344,8 +344,8 @@ def _run_interface(self, runtime):
344344 ratio = response [0 ][1 ] / response [0 ][0 ]
345345
346346 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 )
349349
350350 csd_model = ConstrainedSphericalDeconvModel (
351351 gtab , response , sh_order = self .inputs .sh_order )
0 commit comments