Skip to content

hertzforge.service.spec_lines

spec_lines

How a specification and the PSDs judged against it are drawn: the limit curves' roles and names, the log frequency axis, a curve over the lines a specification is written on, and a reading's rounding.

Functions:

Name Description
sig

A reading rounded for display to digits significant figures.

quantity_of

'acceleration**2/frequency' -> 'acceleration': what a PSD record

positive

Non-positive values as NaN, a gap on a log axis.

spec_line

One curve of a specification over the lines it is written on:

Functions:

sig

sig(value: float, digits: int = 4) -> float

A reading rounded for display to digits significant figures.

quantity_of

quantity_of(dimension: str) -> str

'acceleration**2/frequency' -> 'acceleration': what a PSD record measures, for its label.

positive

positive(y: ndarray) -> ndarray

Non-positive values as NaN, a gap on a log axis.

spec_line

spec_line(spec: Any, record: int, values: ndarray) -> tuple[ndarray, ndarray]

One curve of a specification over the lines it is written on: unwritten lines inside the span are NaN gaps (a controller's zero lines ask for nothing), and the ends are trimmed.