![](https://secure.gravatar.com/avatar/ad13088a623822caf74e635a68a55eae.jpg?s=120&d=mm&r=g)
On Thu, Apr 28, 2011 at 2:52 PM, <josef.pktd@gmail.com> wrote:
On Wed, Apr 27, 2011 at 2:05 PM, Robert Kern <robert.kern@gmail.com> wrote:
On Wed, Apr 27, 2011 at 09:56, <josef.pktd@gmail.com> wrote:
should scipy get additional custom warnings instead of print statements ?
eg. InterpolationWarning, OptimizationWarning, ....
Is that a volunteer I smell? :-)
I'm currently not smelly enough :), but I created http://projects.scipy.org/scipy/ticket/1428
( However, after trying for a few hours yesterday, I managed to authenticate with github so I can push something there. git(gui) is kind of fun, at least for bugfixes. )
Josef
Yes, these print statements should become warnings wherever possible.
A first attempt, just to get started https://github.com/josef-pkt/scipy/commit/548a8925c36c2627f0acb8102a835393de... 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, ... ) Josef
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev