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.0b7

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.0b7
File Size Uploaded Provenance Actions
preface_spearnet-2.0.0b7.tar.gz 5.4 MB Without provenance Details for preface_spearnet-2.0.0b7.tar.gz

Built distribution (wheel)

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

Total release size: 10.8 MB

Release files / preface_spearnet-2.0.0b7.tar.gz

Download URL preface_spearnet-2.0.0b7.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7e5958f184f27e327dca32f21af1b04acdac4f8bb2d1a3defedd4190b8a3dac0
BLAKE2b-256 checksum
How to use checksums
435d911a605fbd6771c9a5129c6df25b1e6c7c89b5dfd23ab64feec0d6373a04
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.0b7-py3-none-any.whl

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

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