Applefy: Robust Detection Limits for High-Contrast Imaging
This is the documentation of applefy, a Python package for calculating
detection limits for exoplanet high contrast imaging (HCI) datasets.
applefy provides a number of features and functionalities to improve the accuracy
and robustness of contrast curve calculations. It implements the classical
approach based on the t-test (compare
Mawet et al. 2014) as well as the parametric
boostrap test for non-Gaussian residual noise (Bonse et al. 2023).
Applefy has two main features:
- Compute contrast curves (see documentation)
- Compute contrast grids (see documentation)
Further, this repository contains the code needed to reproduce the results of our paper, available here.
Documentation
A full documentation of the package, including several examples and tutorials can be found on ReadTheDocs.
This short guide will walk you through the required steps to set up and install
applefy.
The code was written for Python 3.8 and above
Installation
The code of applefy is available on the PyPI repository
as well as on
GitHub. We strongly recommend you
to use a virtual environment to install
the package.
Applefy can only be used together with a data post-processing library for high-contrast imaging data! The following packages are currently supported:
Installation from PyPI
Just run:
pip install applefy
Installation from GitHub
Start by cloning the repository and install applefy as a Python package:
git clone git@github.com:markusbonse/applefy.git ;
cd applefy ;
pip install .
In case you intend to modify the package you can install the package in
"edit mode" by using the -e flag:
pip install -e .
Additional Options
Depending on the use case applefy can be installed with additional options.
If you install applefy from GitHub you can add them by:
pip install -e ".[option1,option2,...]"
If you install applefy from PiPy you can add them by:
pip install "applefy[option1,option2,...]"
The following options are available:
dev: Adds all dependencies needed to build the documentation page with sphinx.fast_sort: Installs the library parallel_sort which can speed up the calculation of bootstrap experiments. Since, parallel_sort is a wrapper around the GNU library it is only supported on Linux.plotting: Installs the libraries seaborn, matplotlib and bokeh which we use in our plots.vip: Installs applefy with VIP. Note, this option is conflicting with the optionpynpoint.pynpoint: Installs applefy with PynPoint using the PynPoint version available on GitHub. Note, this option is conflicting with the optionvip. This option is only available if you installapplefyfrom GitHub.
Demonstration dataset
The tutorials in the user documentation are based on a demonstration dataset (NACO at the VLT). The data is publicly available at Zenodo. The repository contains three files:
30_data: This is the NACO L' Beta Pic dataset as a hdf5 already. The data was pre-processed with PynPoint.70_results: Contains results created by the tutorials of the user documentation. They are only needed if you don't want to compute your own PCA residuals.laplace_lookup_tables.csv: Are the lookup tables for the LaplaceBootstrapTest.
Reproduce our results
Check out the plot gallery
in the applefy documentation.
Authors and Citation
All code was written by Markus J. Bonse, with additional contributions from Timothy Gebhard. Detailed information on the citation can be found here.
Metadata
Release files for applefy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| applefy-0.1.2.tar.gz | 57.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| applefy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.8 MB
Release files / applefy-0.1.2.tar.gz
| Download URL | applefy-0.1.2.tar.gz |
|---|---|
| Size | 57.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b28d680f7aaf9bf2e2dd11cb37e74d28be998af21c72794de5996ffb656e34a3
|
|
BLAKE2b-256 checksum How to use checksums |
78946c794922acd71f9509689fbe1468da0c47c0be7eba302962dffc48194fe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Release files / applefy-0.1.2-py3-none-any.whl
| Download URL | applefy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 57.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50b890b7ee94fdcd1927fbe4fe29b5f1ae4b00f2941019f8de334bed83432ccf
|
|
BLAKE2b-256 checksum How to use checksums |
a2c88645750f120fed9cbb010658ab2b1ae09cdb22547c5645e69b08e5a8122e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|