Skip to main content
Pre-release

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

simtest-funnel (Python)

Python bindings for the simtest-funnel trajectory comparison library, built with PyO3 and maturin.

See the workspace README.md for how this library differs from LBNL Funnel.

Install

pip install simtest-funnel

Quick start

import numpy as np
from simtest.funnel import Options, Tolerances, compare

t = np.linspace(0.0, 1.0, 101)
y_ref = np.sin(2 * np.pi * t)
y_test = y_ref + 0.01

result = compare(
    t, y_ref, t, y_test,
    Options(tolerances=Tolerances(atoly=0.05)),
)
print(result.status)  # 0 == Pass, -1 == Fail, 1/2 == MissingReference/Test

Tolerances(atoly=0.05) sets the y axis only: rtoly becomes 0 and the x axis keeps the default rtolx = 2e-3. Tolerances are resolved per axis (an axis with no coefficient given gets rtol = 2e-3, an axis with at least one given uses 0.0 for the rest; explicit 0.0 counts as given) — see the package README for details.

compare releases the interpreter lock while it runs, accepts timeout= (seconds, raises ComparisonTimeout) and cancel= (a CancelToken another thread can cancel(), raises ComparisonCancelled), and Ctrl-C interrupts it with KeyboardInterrupt.

For DataFrame-based comparisons and the package-level API reference see the package README in python/simtest/funnel/README.md.

Typing

The wheel ships a py.typed marker and a hand-maintained _simtest_funnel.pyi stub, so mypy --strict is supported out of the box.

Documentation

A pdoc-rendered site is published alongside every release. Build it locally with:

make docs-python    # → target/doc/python/index.html

simtest-funnel-python

Python bindings for the simtest-funnel trajectory comparison library, built with PyO3 and maturin.

Metadata

Release files for simtest-funnel 1.0.0b15

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

Built distribution (wheel)

Table of built distributions (wheels) for simtest-funnel 1.0.0b15
File Interpreter ABI Platform Actions
simtest_funnel-1.0.0b15-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for simtest_funnel-1.0.0b15-cp312-cp312-manylinux_2_34_x86_64.whl

Release files / simtest_funnel-1.0.0b15-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL simtest_funnel-1.0.0b15-cp312-cp312-manylinux_2_34_x86_64.whl
Size 360.1 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
86a01da72b1474b1ea2e6278e78b86b772aff67894d4243ffae7cdd3a3487058
BLAKE2b-256 checksum
How to use checksums
8ac614efc1f0e4d199e76e41f628dccb407a9b902be873269dcd550f62175397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for simtest-funnel 1.0.0b15

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