This release is a pre-release and may not be stable for production use.
PREFACE
Pipeline for Ranking Exoplanets For Atmospheric CharactErization (PREFACE) is a Python package for selection of promising exoplanet transmission spectroscopy observations based on their expected scientific return and observational feasibility.
Installation
Install the latest stable release from PyPI:
pip install preface-spearnet
Usage
Using preface consists of four steps:
- Configure the observing instrument with
TelescopeConfigurations. - Define the observing window and output options with
OutputConfigurations. - Optionally configure moonlight modelling and multiprocessing with
MoonlightNoiseConfigurationsandMultiprocessingConfigurations. - Execute the complete pipeline with
run_preface().
Input validation is performed automatically before pipeline execution.
Full documentation (configuration reference, PREFACE workflow and output descriptions, and API) is available at preface.readthedocs.io.
Example
import datetime as dt
from preface import run_preface
from preface.configs import (
TelescopeConfigurations,
OutputConfigurations,
MoonlightNoiseConfigurations,
MultiprocessingConfigurations,
)
ObsStart = dt.datetime(2025, 10, 1)
ObsEnd = dt.datetime(2026, 1, 1)
OutputFolder = r"C:\PREFACE_Output"
TelescopeConfigs = TelescopeConfigurations(
instrument="TNT ULTRASPEC",
filter_name="r",
run_mode="Half_Well",
toggle_sky_noise=True,
toggle_defocus=False
)
OutputConfigs = OutputConfigurations(
observation_start=ObsStart,
observation_end=ObsEnd,
output_folder=OutputFolder,
metric_mode="Rank",
viable_cumulative_cut=0.90,
toggle_graph_outputs=True,
event_weight_graph_threshold=0.75
)
MoonlightConfigs = MoonlightNoiseConfigurations(
toggle_moonlight_noise=True,
scattering_aod=0.2,
absorption_aod=0.3,
asymmetry_factor=0.6,
moonlight_amplification_factor=10
)
MultiprocessingConfigs = MultiprocessingConfigurations(
toggle_multiprocessing=True,
cores_to_leave_out=2
)
run_preface(
TelescopeConfigurations=TelescopeConfigs,
OutputConfigurations=OutputConfigs,
MoonlightNoiseConfigurations=MoonlightConfigs,
MultiprocessingConfigurations=MultiprocessingConfigs
)
Authors
Jake Staberg Morgan (Original author)
Chatdanai Sawangwong (Current maintainer)
email: chatdanai.saw@gmail.com
Supachai Awiphan
email: supachai@narit.or.th
Orarik Tasuya
email: orarik@narit.or.th
Napaporn A-thano
email: napaporn@narit.or.th
Metadata
Release files for preface-spearnet 2.0.0b8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| preface_spearnet-2.0.0b8.tar.gz | 5.4 MB | Without provenance | Details for preface_spearnet-2.0.0b8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| preface_spearnet-2.0.0b8-py3-none-any.whl | Python 3 | none | any | Details for preface_spearnet-2.0.0b8-py3-none-any.whl |
Total release size: 10.8 MB
Release files / preface_spearnet-2.0.0b8.tar.gz
| Download URL | preface_spearnet-2.0.0b8.tar.gz |
|---|---|
| Size | 5.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ce50947fa72075bb43a9ed063df73dcfca75f1566dcfb2c1e1de4f5ded28355
|
|
BLAKE2b-256 checksum How to use checksums |
c0dc3f8c1eb0c05c9f7e38240c2d9901d84db26ca5817a2ef2c553c1838e1909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Release files / preface_spearnet-2.0.0b8-py3-none-any.whl
| Download URL | preface_spearnet-2.0.0b8-py3-none-any.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e02ad884d0c403167612d4e87a898f7db53c367ec2eb841cd4622e6919640ae7
|
|
BLAKE2b-256 checksum How to use checksums |
ae12d6c0ddad9d619d650e6953e5db8dfb499762ad9d403215d24da036311af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Security for preface-spearnet 2.0.0b8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.