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 its default, which is no tolerance in x (time); give e.g. atolx=0.5 to allow the test to be shifted by up to 0.5 time units. Tolerances are resolved per axis (an axis with no coefficient given gets its default — x all 0.0, y rtoly = 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.0b17

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.0b17
File Interpreter ABI Platform Actions
simtest_funnel-1.0.0b17-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.0b17-cp312-cp312-manylinux_2_34_x86_64.whl

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

Download URL simtest_funnel-1.0.0b17-cp312-cp312-manylinux_2_34_x86_64.whl
Size 360.7 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
571d54e298593606a20ce40433428ad6c24a41ecc37d915b09e60d05683117f2
BLAKE2b-256 checksum
How to use checksums
b5994a896747538012c1e1526e3d347450d50981db313abbd5f0a5eb4995b16d
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.0b17

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