Skip to main content

PyPI Documentation Status Tests License Python 3.12+


spaceodyssey

A campaign run in spaceodyssey leaves a log of records, a ledger of spent budget and a belief about the simulated world; Getting started runs one in a few lines.

spaceodyssey supports astronomical analysis and observing campaigns: multi-visit observing programs with inference in the loop. Its JAX-based transaction core simulates a campaign as discrete events against a private simulated world, and a document codec writes and reads studies as JSON. Physical adapters connect it to the HWO direct imaging simulation tools:

  • yippy: coronagraph performance data
  • orbix: orbits and keepout geometry
  • skyscapes: astrophysical scenes
  • jaxedith: count rates and summary radiometry
  • photomancy: priors and posteriors
  • planit-py: action and observing-context vocabulary

The physical adapters need the physical extra.

Key Features

  • Transaction core: spaceodyssey.core orders events, admits effects, accounts for resources and keeps simulated truth apart from what a policy can see
  • Two executors: a host executor and a compiled executor that scans over steps and batches worlds with vmap, on the same transaction rules
  • Study documents: spaceodyssey.codec dumps and loads studies through registered, versioned kinds, with checkpoint and resume for long runs
  • JAX-native: array-based scientific state and composable simulation components

Installation

With uv (recommended):

uv pip install spaceodyssey

Or with pip:

pip install spaceodyssey

(Note: You may need to install JAX separately to match your specific hardware acceleration requirements.)

Quick Start

import jax

jax.config.update("jax_enable_x64", True)

import jax.numpy as jnp
import jax.random as jr

from spaceodyssey.core import Capacities, HostExecutor, RunStatus
from spaceodyssey.studies import builder, toy

caps = Capacities(n_subjects=2, n_an=2, n_assets=1, n_lanes=1, n_channels=1)
study = builder.survey_1(caps=caps)
truth = toy.ToyTruth(signal=jnp.array([1.0, 1.2]))
result = HostExecutor().run(study, truth, jr.PRNGKey(0), 40)
print(RunStatus(result.status).name, int(result.carry.log.valid.sum()), "records")

A run of this five-observation toy campaign ends COMPLETE and leaves five records in its log, a ledger of the budget it spent and a belief about each star.

Documentation

Full documentation is available at spaceodyssey.readthedocs.io.

Metadata

Release files for spaceodyssey 0.2.0

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

Source distribution (sdist)

Source distribution for spaceodyssey 0.2.0
File Size Uploaded Provenance Actions
spaceodyssey-0.2.0.tar.gz 1.5 MB With provenance Details for spaceodyssey-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spaceodyssey 0.2.0
File Interpreter ABI Platform Actions
spaceodyssey-0.2.0-py3-none-any.whl Python 3 none any Details for spaceodyssey-0.2.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / spaceodyssey-0.2.0.tar.gz

Download URL spaceodyssey-0.2.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ef63056a23869dc1af7a8aec5e5d01ea869e531a449d7a0e0615c53e74b7af26
BLAKE2b-256 checksum
How to use checksums
93a31140d354987a756d3a39d636abbf44581b1958fd47f4925a1977d6028ca0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / spaceodyssey-0.2.0-py3-none-any.whl

Download URL spaceodyssey-0.2.0-py3-none-any.whl
Size 428.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7c6d4f40c588e78c32465e8b8232dde1bb4e8c3fa585cf173abba255bb6e30e
BLAKE2b-256 checksum
How to use checksums
7e6a47d7f027feb36d5345ec95bfb4eb2d9fa796680a4a4bb0dec61356d16142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for spaceodyssey 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spaceodyssey-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

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