|
Wildmeshing Toolkit
|
Functions | |
| list | load_spec (str op_name) |
| _rule_for (rules, pointer) | |
| _check (rules, pointer, value) | |
| dict | validate (list rules, dict params) |
Variables | |
| dict | _TYPES |
Minimal validator for the wmtk-style JSON spec rule lists (same format as simwild_spec.json): pointer/type/required/optional/default/options/min/max. Fills defaults for absent optional keys and rejects unmatched pointers with the same "No rule matched" wording as the C++ jse.
|
protected |
Component-wise pointer match where any rule component may be `*`; the most specific matching rule (fewest wildcards) wins.
| list simwild.polyfem_ops.spec.load_spec | ( | str | op_name | ) |
Load the spec.json packaged with simwild.polyfem_ops.<op_name>.
| dict simwild.polyfem_ops.spec.validate | ( | list | rules, |
| dict | params | ||
| ) |
Validate `params` against the rule list; returns a new dict with top-level defaults filled in.
|
protected |