Datasets:
File size: 341 Bytes
b10c2aa | 1 2 3 4 5 6 7 8 9 10 11 | """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)}
|