Executing a python script (way to long to include here) I wrote leads to a warning message. I don't know at which line in my code this gets raised. How can I get this information?
Furthermore, what does this mean exactly? In fact, I didn't know I was using a masked array of some sort?
/usr/lib/pymodules/python2.7/numpy/ma/core.py:3785: UserWarning: Warning: converting a masked element to nan.
warnings.warn("Warning: converting a masked element to nan.")
printstatements around all possible culprits in your code, this will give you a timeline of what is happening, somewhere between yourprints you will see this warning, this way you can localize your issue. If it helps the warning comes fromMaskedArray.__float__, which apparently converts array to float. Another way is to (temporarily) editcore.pyto make it output useful information like attributes of the array. Debuggers are also viable option. - gatto