Covariances for LSST DESC
Project description
TJPCov
TJPCov is a general covariance calculator interface to be used within LSST DESC.
Installation
Non-developer Installation
To use TJPCov, we recommend installing with pip:
python -m pip install .
will install tjpcov and the minimal dependencies.python -m pip install .\[doc\]
will install tjpcov, the minimal dependencies and the dependencies needed to build the documentation.python -m pip install .\[nmt\]
will install tjpcov, the minimal dependencies and the dependencies needed to use NaMaster.python -m pip install .\[mpi4py\]
will install, the minimal dependencies and the mpi4py library to use MPI parallelization.python -m pip install .\[full\]
will install tjpcov and all dependencies
Note that due to a bug in the NaMaster installation, one needs to make sure numpy is installed before trying to install NaMaster. If you are doing a fresh install, run python -m pip install .
first, and then python -m pip install .\[nmt\]
Developer Installation
If you want to contribute to TJPCov, run the following steps to set up your development environment.
- Clone the repository
- Create the conda environment with
conda env create --file environment.yml
- Activate the environment with
conda activate tjpcov
- Run
pip install -e .
- Run
pytest -vv tests/
Planning & development
Ask @felipeaoli or @mattkwiecien for access to the repository and join the #desc-mcp-cov channel on the LSST DESC slack to contribute.
We have adopted the following style convention (which are enforced in each PR):
- Google-style docstrings
- Black code style (with 79 characters line-width)
- PEP8 except for E203 (for better compatibility with black)
For a general idea of TJPCov's scientific scope, see also the terms of reference.
Contributing
We use black
and flake8
configuration files so that code follows a unified coding style and remains PEP8 compliant.
This means before submitting your PR you must run the following in the root directory:
black .
flake8 .
Furthermore, we are following GitHub's recommendation of using Semantic Versioning in our releases.
Dependencies and versioning
TJPCov currently runs on python 3.8, but python 3.9, 3.10 and 3.11 are supported.
TJPCov also has a few specific software versions hardcoded. Please check the pyproject.toml
file to see version requirements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tjpcov-0.4.0.tar.gz
.
File metadata
- Download URL: tjpcov-0.4.0.tar.gz
- Upload date:
- Size: 13.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd4cd437105521e11c7f977d522cdfae75fed6d7e0c06afa599cc7eec8d7a4eb |
|
MD5 | cdabdac7f8b1c692667affe1d5b44227 |
|
BLAKE2b-256 | 97288736aa480065b3253c8fab361997fee87f18875d8d4c06f8e39ab869f577 |
File details
Details for the file tjpcov-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: tjpcov-0.4.0-py3-none-any.whl
- Upload date:
- Size: 46.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9b16fbaf15c7663fda6e521677c6defac21df897c8e7032204b4a9edaafddb |
|
MD5 | 615587c99a3d155921c0afe6c9a793d6 |
|
BLAKE2b-256 | 001d71c5a02162ebea5d3e5dbefb6666c70b1edc5bae9d4d0cb0a529f157e7ac |