Skip to main content

Module report

Module report 

Source
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§

Plot
Report

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-already carries 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: text is the config file as read (for its comments), source names where it came from, named is the file with the parts named for this run in [parts] and not yet resolved, and cfg the config the run uses (named, resolved or not, with whatever was set on top). With bands, the error bands of verdict_bands over the config’s [bounds] too.
peak_keeping
At most 2 buckets of the n points point(0) .. point(n - 1), in their order, for drawing a long line: the points cut into buckets stretches 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 than 2 buckets are 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.