Step 1: NFFT
git clone https://github.com/NFFT/nfft
Following the installation instructions provided, there are a couple things to watch out for. You need to run configure with openMP enabled, and if you're installing on a cluster then you probably want to do a local installation. This should do the trick:
./configure --enable-all --enable-openmp --prefix=/absolute/path/to/nfft
Step 2: pyNFFT
If you don't have NFFT installed system wide, then you have to run setup.py like this:
ttfamily python setup.py build_ext -I /absolute/path/to/nfft/include -L /absolute/path/to/nfftl/lib -R /absolute/path/to/nfft/lib
However, there is an issue which you have to fix ( https://github.com/ghisvail/pyNFFT/issues/56 ). To do this open pynfft/util.c and either comment out or remove the line #include "nfft3util.h"
You'll probably also have to use the --inplace option while running python setup.py build_ext and then the --user option while running python setup.py install unless you're a system administrator. Note that if the install fails because it can't find the site-packages directory in your installation directory, just add it to your $PYTHONPATH and run the install again.
Step 3: eht-imaging
git clone https://github.com/achael/eht-imaging cd eht-imaging pip install . --user
NB: if you get an error about an unexpected keyword "overwrite" then you need to modify the ehtim/io/save.py script to update hdulist.writeto(fname, overwrite=True) to hdulist.writeto(fname, clobber=True))
Step 1: NFFT
git clone https://github.com/NFFT/nfftFollowing the installation instructions provided, there are a couple things to watch out for. You need to run configure with openMP enabled, and if you're installing on a cluster then you probably want to do a local installation. This should do the trick:
./configure --enable-all --enable-openmp --prefix=/absolute/path/to/nfftStep 2: pyNFFT
If you don't have NFFT installed system wide, then you have to run setup.py like this:
ttfamily python setup.py build_ext -I /absolute/path/to/nfft/include -L /absolute/path/to/nfftl/lib -R /absolute/path/to/nfft/libHowever, there is an issue which you have to fix ( https://github.com/ghisvail/pyNFFT/issues/56 ). To do this open
pynfft/util.cand either comment out or remove the line#include "nfft3util.h"You'll probably also have to use the
--inplaceoption while runningpython setup.py build_extand then the--useroption while runningpython setup.py installunless you're a system administrator. Note that if the install fails because it can't find the site-packages directory in your installation directory, just add it to your $PYTHONPATH and run the install again.Step 3: eht-imaging
git clone https://github.com/achael/eht-imaging cd eht-imaging pip install . --userNB: if you get an error about an unexpected keyword "overwrite" then you need to modify the ehtim/io/save.py script to update
hdulist.writeto(fname, overwrite=True)tohdulist.writeto(fname, clobber=True))