[SciPy-user] How to Enable Delaunay Package

Robert Kern robert.kern at gmail.com
Tue Jun 26 16:13:50 EDT 2007


Lorenzo Isella wrote:
> Dear All,
> I am posting this after a discussion originated on the matplotlib 
> mailing list.
> Fundamentally, I need to plot data on irregular (i.e. non equi-spaced 
> rectangular) grids.
> I finally was recommended to look at the Delaunay package (see approach2 
> at the link:  
> 
> http://scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data
> ).
> 
> The problem is that the approach:
> 
> from scipy.sandbox.delaunay import *
> 
> does not work (the system does not find the requested module).
> 
> Now, I am running Debian testing on my box and I have Python2.3,2.4,2.5 
> installed beside SciPy as taken from the standard repositories.
> Under /usr/lib/python2.4/site-packages/scipy/sandbox I have the file 
> setup.py which I copy and paste at the end of the email.
> I try uncommenting the line dealing with Delaunay, but that did not help 
> me out (probably it is useful only if I am rebuilding SciPy, which I 
> would like to avoid).
> Anyone has experienced the same problem or has any suggestions?

You will have to rebuild. Follow the instructions here:

>     # You can put a list of modules you want to always enable in the
>     # file 'enabled_packages.txt' in this directory (you'll have to 
> create it).
>     # Since this isn't under version control, it's less likely you'll
>     # check it in and screw other people up :-)


-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-User mailing list