Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation problems #57

Open
FredvanGoor opened this issue Feb 7, 2021 · 0 comments
Open

installation problems #57

FredvanGoor opened this issue Feb 7, 2021 · 0 comments

Comments

@FredvanGoor
Copy link
Member

It was noticed that the package pyFFTW is not always available for some platforms or (not yet) available for recent Python versions. (this is the case for Python 3.9 at the moment of writing this issue).
Fortunately LightPipes can also use the FFT features of numpy, so we decided to make pyFFTW optional when pip-installing LightPipes at the cost of slightly lower performance.

I have released a new version (2.0.7) of LightPipes which allows optional installation of pyFFTW. Without pyFFTW LightPipes will use the FFT routines in numpy, which are a little bit slower. Using LightPipes with not so large grids (1000 x 1000 or so) you will not notice that. If you want maximum performance you should install pyFFTW by your self or install LightPipes with the pyfftw option.

So:
Normal installation (so without pyFFTW) type at the terminal prompt:

pip install lightpipes

Later you can (try to) install pyFFTW and have maximum performance by:

pip install pyfftw

With the pyFFTW option (so install LightPipes and pyFFTW):

pip install lightpipes[pyfftw]

When you import LightPipes in your python script a warning is shown which advises you to install pyFFTW. You can suppress this (and other !) warnings by using the python -Wignore option:

python -Wignore YourLightPipesScript.py

When pyFFTW has been installed this warning is not shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant