comnum.verify_spec#
- comnum.verify_spec(spec, *, threads=None, progress=False, report_path=None)#
Run a specification and check its expected results (closed forms, published curves).
- Parameters:
spec (str | os.PathLike | dict) – as for
run_spec; it must have anexpectlist.threads (int, optional) – worker threads.
progress (bool) – print one line per condition.
report_path (str | os.PathLike | None) – write the verification report there, the JSON file of
comnum verify.
- Returns:
results(a list of dicts, asrun_spec),checks(one dict per check withname,source,condition,metric,expected,value,lo,hi,passed) andpassed(all checks passed).- Return type:
- Raises:
ValueError – for a specification without expectations, an invalid one, or an expectation that checks no condition.
OSError – if the report cannot be written.