sparam-conformance / sparam_lint_adapter.py
nickh007's picture
Initial release: 11 labelled networks with verified ground truth, plus a scorer
b10c2aa verified
Raw
History Blame Contribute Delete
341 Bytes
"""Reference adapter: sparam-lint -> the conformance scorer contract.
Any checker can be scored by writing five lines like this.
"""
from sparam_lint import read_touchstone, run_battery
def check(path: str) -> dict[str, bool]:
net = read_touchstone(path)
return {r.name: r.passed for r in run_battery(net.s, net.freq_hz, net.z0)}