Hello,

I am attempting to write a small simulation to reproduce something
from a paper. However, I'm having a whale of a time getting it to
work (as far as I have been able to tell, the calculations from the
paper at least are identical to what I am trying to do, which makes
this all the more frustrating). I recently discovered that if I import
pylab after importing numpy, I get tons of warnings:

Warning: divide by zero encountered in divide
Warning: invalid value encountered in multiply
Warning: overflow encountered in long_scalars

with the last occurring far most often (interestingly, I do not get
these warnings if pylab is imported before numpy). My question then is
two fold:

(1) Why do I only get these warnings depending on when I import pylab?

(2) (a more general python question) How can I get these warning
    messages to give me *useful* information, such as where the problems
    are happening?

Thanks,

-- 
Michael V. DePalatis
Georgia Institute of Technology
School of Physics
837 State Street
Atlanta, GA 30332-0430

em vee dee at gatech dot edu
http://mike.depalatis.net


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to