hertzforge.report.run_records¶
run_records
¶
What a report reads from a run record.
A run the control service recorded arrives in a project with its
RunRecord (core.run_record), linked to the run's objects through one
object group (io.run_convert). The record holds what a report would
otherwise have to infer from file names and signal levels: who ran the
test, on which article, to which document and clause; every level
change, hold, alarm, trip and operator action the controller logged,
with its time; how the run ended and in which words; and the counts the
test keeps (pulses, plays, control loops, recordings).
facts reads those out of one record as RunFacts, in words a report
can print. Nothing is invented: a fact the record does not hold is said
to be not in the run record, never filled in from elsewhere. A
simulated run is labeled SIM. record_of finds the record a time
history belongs to, and field_value answers the live references a
report's text makes to a record ({{@basis:RunRecord.operator}}), so a
template's words fill themselves in from whichever run the project
holds.
The module-specific readings (condition, drive_prediction, the
Mixed Mode parts' levels, the Explorer survey, the Recorder's
recordings) read the record's own arrays and descriptions, each with
the unit the folder wrote, and say plainly when the record has none.
Classes:
| Name | Description |
|---|---|
Event |
One entry of the run's log as a report reads it: when (seconds |
RunFacts |
What one run record says of its run, in a report's words. |
Functions:
| Name | Description |
|---|---|
source_words |
'SIM (simulator)', 'HARDWARE', or that the record does not say: |
start_text |
The run's start with its UTC offset, ISO 8601, or ''. |
facts |
What |
records |
The run records in the project, by name, in its order. |
record_of |
The run record the object |
condition_text |
The identification's condition number (dimensionless): its |
drive_prediction_text |
The drives the control law's seed asked for before the loop |
drive_rms_text |
Each drive's rms over the run as the end's report gives it, and |
control_error_text |
Each controlled quantity's rms against its reference and the |
mixed_parts_text |
Each part of a Mixed Mode run at its last recorded point at the |
survey_text |
An Explorer run's survey: each frequency the tone visited with |
measured_text |
What an Explorer run measured at its end, as its end gives it: |
recordings_text |
A Recorder run's recordings: each one's name, trigger, length and |
row_statistics_text |
Each recorded row's statistics over a Recorder run, as its end |
events_text |
The events in order, each with its time, or 'none'. |
field_value |
The live reference |
Classes¶
Event
dataclass
¶
One entry of the run's log as a report reads it: when (seconds from the run's start, None when the record has no time for it), its kind and its words.
Methods:
| Name | Description |
|---|---|
when |
'at 15.0 s', or that the record holds no time for the event. |
RunFacts
dataclass
¶
RunFacts(test: str, run_id: str, title: str, source: str, operator: str, article: str, specification: str, notes: str, start: str, complete: bool, outcome: str, outcome_text: str, level_db: float | None, levels: tuple[tuple[float | None, float], ...] = (), at_full_level_s: float | None = None, holds: tuple[Event, ...] = (), resumes: tuple[Event, ...] = (), alarms: tuple[Event, ...] = (), trips: tuple[Event, ...] = (), overloads: tuple[Event, ...] = (), operator_actions: tuple[Event, ...] = (), counts: tuple[tuple[int, str], ...] = (), events: tuple[Event, ...] = (), missing: tuple[str, ...] = ())
What one run record says of its run, in a report's words.
levels are the level changes as (seconds from the start, level in
dB), level_db the level the run ended at (the end's own, else the
last level change), None when the record holds none. holds,
resumes, alarms, trips, overloads and operator are the
log's entries of each sort. counts are (count, words) in the order
printed. outcome is the end's code ('' for a run that did not end
cleanly) and outcome_text it in words with the end's message, and
that the emergency stop was issued when the end says so.
Methods:
| Name | Description |
|---|---|
levels_text |
'-3 dB at 15.0 s, 0 dB at 17.0 s', or that the record holds |
interruptions_text |
The holds, resumes and trips, in order, with their times. |
counts_text |
'3 pulses, 2 levels', or that the record holds no counts. |
summary_line |
One line under the chronology for the run of record |
Attributes:
| Name | Type | Description |
|---|---|---|
test_name |
str
|
The test in words, or the record's own word for one with no |
Attributes¶
test_name
property
¶
The test in words, or the record's own word for one with no name here.
Methods:¶
levels_text
¶
'-3 dB at 15.0 s, 0 dB at 17.0 s', or that the record holds no level change.
interruptions_text
¶
The holds, resumes and trips, in order, with their times.
summary_line
¶
One line under the chronology for the run of record name:
its test and source, who, what and to which document, its levels,
alarms and counts.
Functions:¶
source_words
¶
'SIM (simulator)', 'HARDWARE', or that the record does not say: a label is never guessed.
start_text
¶
The run's start with its UTC offset, ISO 8601, or ''.
facts
¶
facts(record: Any) -> RunFacts
What record (a RunRecord) says of its run.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
RunRecord
|
The run's record. |
required |
Returns:
| Type | Description |
|---|---|
RunFacts
|
|
records
¶
The run records in the project, by name, in its order.
record_of
¶
record_of(objects: Mapping[str, Any], name: str, object_groups: Sequence[Mapping[str, Any]] | None = None) -> Any
The run record the object name belongs to: the one run record in
an object group that holds name. None when no group links it to
exactly one, so data with no run record is read as before.
condition_text
¶
The identification's condition number (dimensionless): its largest over the band and the line it falls on, its smallest, and the gate's limit and verdict as the end's report gives them.
drive_prediction_text
¶
The drives the control law's seed asked for before the loop engaged, the drive prediction: each drive's rms from its spectral density on the band's lines (V rms from V^2/Hz), against its ceiling where the setup gives one.
drive_rms_text
¶
Each drive's rms over the run as the end's report gives it, and the smallest cap the guards set on it.
control_error_text
¶
Each controlled quantity's rms against its reference and the error in dB, as the end's report gives them.
mixed_parts_text
¶
Each part of a Mixed Mode run at its last recorded point at the highest level the run reached: each tone's and narrowband's frequency, measured level and reference, and the controller's error, and the floor's, with their units and the time of the point.
survey_text
¶
An Explorer run's survey: each frequency the tone visited with the control row's amplitude there, peak, and the highest point.
measured_text
¶
What an Explorer run measured at its end, as its end gives it: each acquired channel's rms, the measured frequency, the control row's motion and the survey's peak, with their units.
recordings_text
¶
A Recorder run's recordings: each one's name, trigger, length and pre-window, gaps and fault.
row_statistics_text
¶
Each recorded row's statistics over a Recorder run, as its end gives them, in the row's unit.
events_text
¶
events_text(found: Sequence[Event]) -> str
The events in order, each with its time, or 'none'.
field_value
¶
The live reference name of a run record, in words; None for a
field a run record does not answer, which the page leaves as
written.