A small example package for using LISA catalogs
Project description
lisacattools
Python module for interacting with example LISA catalogs
1 - Getting Started
These instructions will get you a copy of the project up and running on your local machine, either for development and testing purposes or as an installed package. For more information, see the documentation at https://tlittenberg.github.io/lisacattools/html/index.html.
1.1 - Prerequisites
You will need python3 to run this program.
1.2 - Installing by cloning the repository
First, we need to clone the repository
git clone https://github.com/tlittenberg/lisacattools.git
1.2.1 - For users
To install the package for non-root users:
make user
To install the package on the root system:
make
1.2.2 - For developers
Create a virtualenv
make prepare-dev
source .lisacattools-env
Install the sotfware and the external libraries for development purpose
make install-dev
1.3 - Installing by pip
pip install lisacattools
2 - Development (only if the repository has be cloned)
2.1 - Writing the code
Install the software by PIP (developers version)
Then, develop your code and commit
git commit
The tests and code style formatter will be run automatically. To ignore the checks, do
git commit --no-verify
2.2 - Running the tests
make test
2.3 - Testing on python 3.8,3.9,3.10
Install all required prerequisite dependencies:
sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
Download and execute installation script: 
curl https://pyenv.run | bash
Add the following entries into your ~/.bashrc file:
# pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
Restart your shell:
exec $SHELL
Validate installation:
pyenv --version
Once the dependencies are installed, test on python 3.8, 3.8 and 3.10 :
make tox
3 - Running the tutorial
Once the software is installed, data must be downloaded for the tutorial.
The data are downloaded from a google drive and are large files -- ~10GB in total -- and will be installed
in tutorial/data
.
Datasets include a catalog of simulated MBH detections with parameters updated on a weekly cadence,
and two UCB catalogs, using 3 and 6 months of simulated LISA data.
make data
Then install jupyter and run the tutorial
make demo
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- James I. Thorpe, Tyson B. Littenberg - Initial work
- Jean-Christophe Malapert
License
This project is licensed under the LGPLV3 License - see the LICENSE file for details
Project details
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 lisacattools-1.1.1.tar.gz
.
File metadata
- Download URL: lisacattools-1.1.1.tar.gz
- Upload date:
- Size: 988.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc79e74146754e9570ccde07af756c6b31006670a3731907423ca3a35cfa5c6 |
|
MD5 | d088a530f5a39a0e4f206c6d54e5feb9 |
|
BLAKE2b-256 | f8296585ce521000931327b41af97b7d4695c367b5888e32167a432a63605166 |
File details
Details for the file lisacattools-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: lisacattools-1.1.1-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ef95e8f3a489b7417914514a1570050ad30fc5077fa0e78fd1697db973f11d |
|
MD5 | 15a94d4aaa9f3df011d30864b2b5f6c5 |
|
BLAKE2b-256 | b85874f87aa90d81a40463a8752a1805770eebf3545631ca4f0d9f3a641a720c |