[SciPy-user] Arrayfns in numpy?

Travis Oliphant oliphant@ee.byu....
Tue Mar 6 10:19:22 CST 2007

Stephen Kelly wrote:
> Hi,
> Thanks for the reply.
> I don't want to depend on scipy for a small task like this. I want to 
> keep dependencies small.
> I looked at the searchsorted function, but don't see how it would be 
> useful. My data is not regularly spaced. It is X-ray diffraction data 
> in which each intensity has been shifted slightly. I am currently 
> using arrayfns from Numeric to get data with regular spacing. Could 
> you give more information on how to interpolate the data? I don't know 
> where to start.
> As an aside, here's some things in Numeric that aren't in numpy. Is 
> this oversight, or are there no plans to implement them?
> 1. arrayfns module
> 2. UserArray module with UserArray class (comparible to UserDict, 
> UserList).

The UserArray module is there (it is imported when you import numpy as 

The UserArray class is called numpy.lib.user_array.container

The arrayfns module was not an oversight.  Some of the arrayfns module 
has been implemented except for functions that belong in SciPy.

The trend has been to move more things out of NumPy and make SciPy more 
modular so that pieces can be installed separately.  

There will always be people who want something moved into NumPy.  It is 
hard to know where to stop.

Which function in arrayfns are you missing?


More information about the SciPy-user mailing list