HERA Power Spectrum Estimator Code
Project description
The hera_pspec library provides all of the tools and data structures needed to perform a delay spectrum analysis on interferometric data. The input data can be in any format supported by pyuvdata, and the output data are stored in HDF5 containers.
For usage examples and documentation, see http://hera-pspec.readthedocs.io/en/latest/.
Installation
For users
The package is installable, along with its dependencies, with PyPi. We recommend using Anaconda and creating a new conda environment before installing the package. You may wish to install some of the dependencies directly with conda instead of pip before installing the package. This is especially important for jax on MacOS:
$ conda create -n hera_pspec python=3 $ conda activate hera_pspec $ conda install jax $ python3 -m pip install hera_pspec
New versions are frequently released on PyPi.
For developers
If you are developing and/or want to use the latest working version of hera_pspec, you can directly install from the GitHub repository.
Preferred method of installation for users is simply pip install -e . (or pip install git+https://github.com/HERA-Team/hera_pspec). This will install required dependencies. See below for manual dependency management.
Dependencies
If you are using conda, you may wish to install the following dependencies manually to avoid them being installed automatically by pip:
$ conda install -c conda-forge "numpy>=1.15" "astropy>=2.0" h5py pyuvdata scipy matplotlib pyyaml jax
Developing
If you are developing hera_pspec, it is preferred that you do so in a fresh conda environment. The following commands will install all relevant development packages:
$ git clone https://github.com/HERA-Team/hera_pspec.git $ cd hera_pspec $ conda create -n hera_pspec python=3 $ conda activate hera_pspec $ conda env update -n hera_pspec -f ci/hera_pspec_tests.yml $ pip install -e .
This will install extra dependencies required for testing/development as well as the standard ones.
Running Tests
Uses the pytest package to execute test suite. From the source hera_pspec directory run: pytest.
Running hera_pspec
See the documentation for an overview and examples of how to run hera_pspec. There are also some example Jupyter notebooks, including examples/PS_estimation_examples.ipynb (a brief tutorial on how to create delay spectra), and examples/PSpecBeam_tutorial.ipynb (a brief tutorial on handling beam objects).
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hera_pspec-0.5.0.tar.gz.
File metadata
- Download URL: hera_pspec-0.5.0.tar.gz
- Upload date:
- Size: 89.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b27d51dea55af3804b953eb77d19884c0d199d3d65f4d451b5bac3390d47257
|
|
| MD5 |
45983f83787d59254dfd8d43f89bde6d
|
|
| BLAKE2b-256 |
44abd1a8fb2cabcc5ac3522da9ed14e8d6b6bfcb2450786025f344a91f7264fe
|
File details
Details for the file hera_pspec-0.5.0-py3-none-any.whl.
File metadata
- Download URL: hera_pspec-0.5.0-py3-none-any.whl
- Upload date:
- Size: 84.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4565e05a3a7d28a96880d6613f1b300146d3b53a0972df7094f37ec8f55b293a
|
|
| MD5 |
e3e96c1c67058dc6325cdff8efefcbe0
|
|
| BLAKE2b-256 |
651c49520f2868f36994ba6ca0980dbfe0eee1b7ecb9a1ee74d27313f77956bb
|