[Scipy-tickets] [SciPy] #1428: use custom warnings instead of print statements

SciPy Trac scipy-tickets@scipy....
Sat Apr 30 09:16:53 CDT 2011


#1428: use custom warnings instead of print statements
-----------------------+----------------------------------------------------
 Reporter:  josefpktd  |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:          
Component:  Other      |     Version:  0.9.0   
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by josefpktd):

 A first attempt, just to get started

 https://github.com/josef-
 pkt/scipy/commit/548a8925c36c2627f0acb8102a835393deeefe26

 in optimization, do we drop the disp option for warnings and the
 associated prints ? there still remains the final print for success.

 Is there a way to set the default warning level for the `UserWarning` to
 "always" ?

 Still needs tests, examples that raise the warnings.

 (I'm only partially familiar with the internal details of scipy.optimize,
 interpolate, ... )

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1428#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list