Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PREFACE

Prioritization and Ranking of Exoplanets For Astronomical Characterization and Exploration (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:

  1. Configure the observing instrument with TelescopeConfigurations.
  2. Define the observing window and output options with OutputConfigurations.
  3. Optionally configure moonlight modelling and multiprocessing with MoonlightNoiseConfigurations and MultiprocessingConfigurations.
  4. 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.0b6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for preface-spearnet 2.0.0b6
File Size Uploaded Provenance Actions
preface_spearnet-2.0.0b6.tar.gz 5.4 MB Without provenance Details for preface_spearnet-2.0.0b6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for preface-spearnet 2.0.0b6
File Interpreter ABI Platform Actions
preface_spearnet-2.0.0b6-py3-none-any.whl Python 3 none any Details for preface_spearnet-2.0.0b6-py3-none-any.whl

Total release size: 10.8 MB

Release files / preface_spearnet-2.0.0b6.tar.gz

Download URL preface_spearnet-2.0.0b6.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
9ad9d3308616edff083f7ac074a307c2c3d823997913fd13fc93cfbcf1faca57
BLAKE2b-256 checksum
How to use checksums
5b9707d61abf4f312014db7944e86ad2c5a96c213ca506fde0493ef6e8ec62a6
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.0b6-py3-none-any.whl

Download URL preface_spearnet-2.0.0b6-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
db8c418ef0052328a1092679dcc15d71d0ab2b3f03ec9356faef1773e1d7d457
BLAKE2b-256 checksum
How to use checksums
d4f7c2de9aeb63d309c5b46e27615b6918beab16bccb76b564d517d6fbe7f38d
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.0b6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page