[Numpy-tickets] [NumPy] #759: spurious underflow warning in numpy.lib.machar

NumPy numpy-tickets@scipy....
Sat Apr 26 11:20:19 CDT 2008

#759: spurious underflow warning in numpy.lib.machar
 Reporter:  cdavid  |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:  none    
 Severity:  normal  |    Keywords:          
 I sometimes use seterr(all = 'warn') to detect potential problems in my
 algorithms, and I always get warning in numpy.lib.machar when importing
 e.g. scipy.io. For example, this minimal script shows this behaviour:

 import numpy as np
 from scipy.testing import *

 a = np.seterr(all = 'warn')

 from scipy.io import savemat, loadmat

 I attached a patch which should solve the problem. As I am not familiar
 with this part of numpy codebase, I did not apply it right away.

Ticket URL: <http://scipy.org/scipy/numpy/ticket/759>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list