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.
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
. Note that until the halomod
is released with a new version, onepower
requires the manual install of the main branch of halomod
.
pip install halomod @ git+https://github.com/halomod/halomod.git@main
pip install onepower
This will install all uninstalled dependencies (see previous section). Alternatively, for the very bleeding edge, install from the main branch of the repo
pip install onepower @ git+git://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).