[Numpy-discussion] quick question about numpy deprecation warnings

Charles Doutriaux doutriaux1 at llnl.gov
Tue Jul 15 13:10:23 EDT 2008


Hi I have a quick question and i hope somebody can answer me (I admit I 
should first really check the numpy doc)

I have been porting old Numeric based C code to numpy/numpy.ma for the 
alst couple weeks.

Just as I thought I was done, this morning I updatethe numpy trunk and I 
now get the following deprecation warnings

 DeprecationWarning: PyArray_FromDims: use PyArray_SimpleNew.
DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use 
PyArray_NewFromDescr.

My quick question is:
can I simply replace the function names or is the arg list different?

Thanks,

Charles.




More information about the NumPy-Discussion mailing list