Skip to main content

GitHub release; latest by date GitHub Release Date Test Status Code coverage
PyPI - Version PyPI - Format PyPI - Downloads PyPI - Python Version
GitHub commits since latest release GitHub commit activity GitHub last commit
Number of GitHub open issues Number of GitHub closed issues Number of GitHub open pull requests Number of GitHub closed pull requests
GitHub License Number of GitHub stars GitHub forks

rms-oops

This package is under development. Use with extreme caution.

Repository Layout

  • src/oops: The oops library.
  • src/spicedb: The spicedb library.
  • programs/gold_master: The gold master backplane test framework, imported as programs.gold_master. It is a runnable tool rather than part of the oops API, so it lives outside src.
  • tests: The unit tests, mirroring src/oops, plus the host tests under tests/hosts and the spicedb tests under tests/spicedb.
  • scripts: setup-venv.sh, run-all-checks.sh, and the automated test script CI runs.

Development Setup

The library packages live under src, so they are importable only after an editable install (or with src on PYTHONPATH). To create the virtual environment the check script expects and install the package with its development extras:

./scripts/setup-venv.sh
source venv/bin/activate

To run the checks:

./scripts/run-all-checks.sh

Environment Variables

  • OOPS_RESOURCES: The top-level directory containing all files needed by OOPS. Unless overriden as described below, this environment variable is the only one that needs to be set. It is expected that the specified directory will contain the subdirectories:
    • SPICE: SPICE kernels and associated database.
    • HST: Reference and calibration files required for HST.
    • JWST: Reference and calibration files required for JWST.
    • gold_master: Gold master files for host tests.
    • test_data: Test input files.
  • SPICE_PATH: The location of the SPICE kernel files; defaults to ${OOPS_RESOURCES}/SPICE.
  • SPICE_SQLITE_DB_NAME: The full path and filename of the SPICE SQlite database; defaults to ${SPICE_PATH}/SPICE.db.
  • OOPS_TEST_DATA_PATH: The location of the oops test files; defaults to ${OOPS_RESOURCES}/test_data.
  • OOPS_GOLD_MASTER_PATH: The location of the oops gold master test files; defaults to ${OOPS_RESOURCES}/gold_master.
  • OOPS_BACKPLANE_OUTPUT_PATH: The output path to use when writing backplanes for gold master tests; defaults to the current directory.
  • HST_IDC_PATH: The location of HST IDC files; defaults to ${OOPS_RESOURCES}/HST/IDC.
  • HST_SYN_PATH: The location of HST SYN files; defaults to ${OOPS_RESOURCES}/HST/SYN.

Running Tests

The tests use pytest.

  • To run the main oops unit tests:
pytest tests --ignore=tests/hosts --ignore=tests/spicedb
  • To run the host tests, which are the gold master tests:
pytest tests/hosts
  • To run the spicedb tests:
pytest tests/spicedb
  • To run everything:
pytest tests
  • To run the full set of quality gates (ruff, flake8, mypy, stubtest, pyroma, bandit, vulture, the three test suites, and the documentation build):
./scripts/run-all-checks.sh
  • To build the documentation on its own, both the public copy in docs/_build/html and the private-members copy the Developer's Guide relies on, in docs/_build/private/html:
./scripts/run-all-checks.sh --sphinx

The documentation holds a User's Guide and a Developer's Guide alongside the API reference; open docs/_build/html/index.html after the build.

  • To run the gold master tests for one instrument with the ability to specify command line options:
export PYTHONPATH=.
python tests/hosts/cassini/iss/gold_master.py --help
python tests/hosts/galileo/ssi/gold_master.py --help
  • To compare against a set of gold master files somewhere other than the default, use --gold-master on either the instrument command or pytest. It overrides $OOPS_GOLD_MASTER_PATH and $OOPS_RESOURCES for that run only:
pytest tests/hosts --gold-master=/path/to/masters
PYTHONPATH=. python tests/hosts/cassini/iss/gold_master.py --gold-master=/path/to/masters

The directory must have the standard layout, in which the files for one observation are found in <path>/<mission>.<instrument>/<basename>, such as <path>/cassini.iss/W1573721822_1. The directory is named for the mission and the instrument alone, not for the module's place in any import tree, so the files stay put when the module moves. As with the environment variables, the path may name a cloud resource such as gs://rms-oops-resources/gold_master.

  • Generated backplanes are written to $OOPS_BACKPLANE_OUTPUT_PATH (or --output) under that same <mission>.<instrument>/<basename> layout, so an output directory can be handed straight back to --gold-master. To build a complete set of masters somewhere else, adopt into it: --adopt writes the full-resolution arrays that a comparison expects, along with the summary.py holding the backplanes whose value is constant.
export PYTHONPATH=.
python tests/hosts/cassini/iss/gold_master.py --adopt --gold-master=/path/to/new
python tests/hosts/cassini/iss/gold_master.py --gold-master=/path/to/new
pytest tests/hosts/cassini/iss --gold-master=/path/to/new

Naming the directory with --gold-master is what keeps --adopt away from the real masters, which it would otherwise overwrite in place.

Metadata

Release files for rms-oops 0.4.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 rms-oops 0.4.0
File Size Uploaded Provenance Actions
rms_oops-0.4.0.tar.gz 1.2 MB Without provenance Details for rms_oops-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rms-oops 0.4.0
File Interpreter ABI Platform Actions
rms_oops-0.4.0-py3-none-any.whl Python 3 none any Details for rms_oops-0.4.0-py3-none-any.whl

Total release size: 2.0 MB

Release files / rms_oops-0.4.0.tar.gz

Download URL rms_oops-0.4.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
72e26216d837f2c93b5e8a236aec575ba605f8802fcc1550269bb6f170580b1a
BLAKE2b-256 checksum
How to use checksums
3c4f937318f396aec58a7a3e7de777679c71b90f5efbfd606a79fd11c31b7c1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rms_oops-0.4.0-py3-none-any.whl

Download URL rms_oops-0.4.0-py3-none-any.whl
Size 756.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97c9fe0fba5ac0c048de9073090c5e55b1be5e01e97f6ad18dca2f983c3ef4cd
BLAKE2b-256 checksum
How to use checksums
695bf73ba57b0977144137a65c2148eba0a82f514a6c3b01d8b9668ce81533ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for rms-oops 0.4.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.

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