Skip to main content

Trajectory comparison library

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simtest_funnel-1.0.0b9-cp312-cp312-manylinux_2_34_x86_64.whl (308.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file simtest_funnel-1.0.0b9-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for simtest_funnel-1.0.0b9-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 58e24ec18b2d698783efd961b8d92e2fc931be9c9e8bc6b808f19bb1d926f21f
MD5 6ce66f198f503211dccea0650475e374
BLAKE2b-256 4f5fea334426aeac55528fbc02f68437806115f00581666ccdf67acaadd74bbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page