hertzforge.service.waterfalls¶
waterfalls
¶
One data object as a waterfall view, for any operation that offers one.
The numbers are hertzforge.drawing.viz.waterfall's, the arithmetic of
the 3-D data view, asked for values rather than log10
exponents because the shell takes the log itself. Values are SI, as the
service's other views are.
Functions:
| Name | Description |
|---|---|
quantity_key |
A (dimension, hint) group as the |
unit_text |
A dimension's SI unit as the application writes it ('m/s²'), or |
axes |
The abscissa and value axes of |
waterfall_view |
|
Classes¶
Functions:¶
quantity_key
¶
A (dimension, hint) group as the quantity param names it.
unit_text
¶
A dimension's SI unit as the application writes it ('m/s²'), or None when it is undefined or a bare ratio ('1').
axes
¶
The abscissa and value axes of data's records as waterfall_arrays
drew them, labeled by the first drawn record's quantity. A PSD's frequency
axis is log whatever the arrays say.
waterfall_view
¶
waterfall_view(title: str, data: Any, page: int = 1, component: str = 'magnitude', quantity: str = '', records: list[int] | None = None) -> dict[str, Any]
data's records at their own depths, as one waterfall view.
page is 1-based and lands on the last page when past it. A time
history is peak-decimated to the point budget, a PSD keeps every tread
of its steps, and a specification fills in along its power law.
component applies to complex frequency data: a signed part or the
phase reads on a linear axis. One quantity is drawn, the
group quantity names (quantity_key) or else the largest; when the
object has more than one, the view lists them as quantities for the
shell to offer, and its note names those not drawn. records draws those alone (the sub-items picked in
the tree). An object with no records is refused.