pyFFTps can be used to do mass assign for simulation particles and calculate the power spectrum.
The basic code is from the Pylians3.
We modified the code to support the interlacing technology and do the shotnoise substration from the density field.
Therefore, the calculated power spectrum is accurate toward even
You can just modify the python path in the build.sh and run
./build.sh
This package is dependent only on the pyFFTW which provide the thread-parallel FFT algorithm.
Please view the test directory.
Please cite the Wang & Yu 2024 if you find this code useful in your research.
We welcome all contributions to pyFFTps via Pull Requests. Let us know about any issues or questions about pyFFTps.