Installation#
This page will guide you through installing onepower – either as purely a user, or
as a potential developer.
Dependencies#
onepower has a number of dependencies, all of which should be automatically installed
as you install the package itself. You therefore do not need to worry about installing
them yourself, except in some circumstances.
The list of major dependencies used by onepower is:
The halomod.
(Optionally) The Dark Emulator
The optional input fits files as used in Fortuna et al. 2021 are available here: Luminosity_redshift. Those are required for the IA predictions to agree, as they provide sample properties and fractions of red and blue galaxies. Similar data is required for any luminosity based IA predictions are to be used.
User Install#
You may install the latest release of onepower using pip.
pip install onepower
This will install all uninstalled dependencies (see previous section). Note that this will not install Dark Emulator by default, due to its optional nature.
To install the onepower with the Dark Emulator, you can do so by runnning:
pip install onepower[bnl]
Alternatively, for the very bleeding edge, install from the main branch of the repo
pip install onepower@git+https://github.com/KiDS-WL/onepower.git
Developer Install#
If you intend to develop onepower, clone the repository:
git clone https://github.com/KiDS-WL/onepower.git
or your fork of it:
git clone https://github.com/<your-username>/onepower.git
Move to the directory and install with
pip install -e ".[dev]"
This will install all dependencies – both for using and developing the package (testing,
creating docs, etc.). Again, see above about dependencies with conda if you are
using a conda environment (which is recommended).