Skip to content

hertzforge.service.units

units

Declaring the units a file did not state: by channel, not by record.

A geometry has one length unit and a shape set one mass unit. A data object's records are grouped into channels by (DOF, quantity), since a drive point's accelerometer and load cell share a DOF and are two channels, and one channel's unit applies to every record it is in. An FRF has two tables, its response channels and its reference channels; a cross-spectral matrix has one, the channels on either side of its terms. A record converts when every channel it is made of is named, and one only half named waits, its named half held on the object until the other comes

Functions:

Name Description
tables

project.units: the tables an object's units are declared in, each

define

project.define_units: the units named, by table and row, declared

Classes

Functions:

tables

tables(project: Any, name: str) -> dict[str, Any]

project.units: the tables an object's units are declared in, each row a channel (or the object itself) with its unit, None while it is not declared, and the units offered first for it.

define

define(project: Any, name: str, given: Any) -> list[int]

project.define_units: the units named, by table and row, declared on the object; the records converted. Every unit is read before anything changes, so a unit that does not parse leaves the object as it was. A data record converts when each of its channels is named (here or already), and waits otherwise.