Expand description
The sizing report a customer signs: the machine, plots of the cycle, every verdict with its value, limit and
margin, the error bands, where each input comes from ([catalogue], [estimate], [cad] in the config’s
comments) and a sign-off block. One document model, written as self-contained HTML (plots as inline SVG) or as
PDF. The PDF is written here: A4, the standard Helvetica fonts, no compression, so no dependency is needed.
Structs§
Enums§
- Block
- One part of the report, in reading order.
Functions§
- check_
key - The label key of a verdict: “check-
”, and for “motor-speed” on a linear motor (m/s, not rad/s) the key with “-linear” appended. - check_
labels - The ids of failing checks, joined by “, “ (as
error-cycle-fails-alreadycarries them, one per motor that fails it), as their labels, each once, joined by “; “ (a label has commas of its own); an id with no label stays as it is. - make
- The report of a config:
textis the config file as read (for its comments),sourcenames where it came from,namedis the file with the parts named for this run in[parts]and not yet resolved, andcfgthe config the run uses (named, resolved or not, with whatever was set on top). Withbands, the error bands ofverdict_bandsover the config’s[bounds]too. - peak_
keeping - At most
2 bucketsof thenpointspoint(0)..point(n - 1), in their order, for drawing a long line: the points cut intobucketsstretches of about equal count, and of each the lowest and the highest point (one, where they are the same). A stride would step over a peak one sample wide; this keeps every stretch’s extremes, so the drawn line reaches every peak there is. Fewer points than2 bucketsare given as they are. - sources
- The source of each value of a config text, by dotted path, as its comments say: a comment line naming
[catalogue],[estimate]or[cad](any case) marks the keys right below it, up to a blank line or the next comment; a[cad]line, which the CAD tools write per key, marks only the key right below it. A tag in a comment at the end of a key’s line marks that key. One right above or after a table header marks every key of the table that has none of its own. A comment naming two tags gives both, “[catalogue] / [estimate]”: which value is which is in its words.