/PyUltraLight

Pseudo-spectral Python code to compute ultralight dark matter dynamics.

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

PyUltraLight

PyUltraLight Repository

Prerequisites

In order to run the Jupyter notebook, a number of Python prerequisites must first be installed. The full list of modules required by the main code and the notebook is:

numpy, numexpr, numba, h5py, pyfftw, time, sys, os, matplotlib, math, multiprocessing.

Run the following to install all necessary packages (using command line)

For Windows

python -m venv venv-pyultralight

.\venv-pyultralight\Scripts\activate

pip install -r .\dev_requirements.txt

For OS-X

python -m venv venv-pyultralight

source venv-pyultralight/bin/activate

pip install -r .\dev_requirements.txt

Running Jupyter Notebook

jupyter notebook

You should see an output img.png

For more information refer to Running a Jupyter Notebook

More information

Instructions on basic setup and usage can be found here: http://cosmology.blogs.auckland.ac.nz/pyultralight/

The complete code release paper can be found here: https://arxiv.org/pdf/1807.04037.pdf