hertzforge.service.ops_settings¶
ops_settings
¶
A time history's analysis settings, set from the shell: its averaging,
its filter and its truncation span, which Compute Spectra and Compute
PSDs, the filtered history and Apply Truncation then read. Each is an
operation whose params open on the history's own settings (setting)
and whose result draws the setting on one record, and reads back what was
stored. Filter is set and applied in one: with keep it adds the filtered
history and draws that.
Functions:
| Name | Description |
|---|---|
settings_of |
The settings an object carries, as the project summary lists them: a |
span_region |
The span of every frame, dragged on the plot: its middle slides the |
frame_regions |
The frames spectra are averaged from, each a region carrying its |
averaging_regions |
What draws an averaging on a history's plot: its frames, then the |
set_averaging |
|
spanned |
|
drag_averaging |
|
detect_averaging |
|
set_filter |
|
set_truncation |
|
Classes¶
Functions:¶
settings_of
¶
The settings an object carries, as the project summary lists them: a
time history's {'averaging': {...}, 'filtering': {...}, 'truncation':
{...}}, each present only when set, a time comparison's
{'time_comparison': {start, stop}}, a geometry's {'rigid': {...}}, and a
report's {'features': {key:
on}} for every report feature and its identification fields
{'identity': {key: text}}. What a setting param opens on.
span_region
¶
span_region(name: str, averaging: Any, rate: float, origin: float, samples: int | None = None) -> dict
The span of every frame, dragged on the plot: its middle slides the
frames along the record and an edge adds or removes frames
(project.drag_averaging, which keeps whole frames). The drag carries the
frame, overlap, window and detrend drawn, so frames typed into the form and
not yet stored are the ones dragged.
frame_regions
¶
The frames spectra are averaged from, each a region carrying its
window's weights and its row among the frames it overlaps
(Averaging.levels); one span over all of them when there are too
many to see.
averaging_regions
¶
What draws an averaging on a history's plot: its frames, then the
span that drags them. averaging is the history's own when None.
set_averaging
¶
project.set_averaging: the frames a history's spectra are averaged
from. Refused when the record cannot hold them, and for a history of
transformed responses, which takes its recording's.
spanned
¶
spanned(averaging: Any, rate: float, origin: float, samples: int, start: float, stop: float, was_stop: float | None = None) -> Any
averaging moved to the span start to stop, seconds on the record's
clock, with as many whole frames as the span holds, at least one. It starts
where the span does, unless the span still ends at was_stop, where it
ended before the drag: then its left edge was the one dragged, so the end
stays and whole frames are added or removed at the start. A span slid past
the end of the record is slid back until its frames fit, and one dragged
longer than the record keeps the frames that fit.
drag_averaging
¶
project.drag_averaging: a history's frames after their span was
dragged on its plot to start and stop, seconds on the record's clock
(spanned), with the frame length, overlap, window and detrend the plot drew.
A span that still ends at was_stop had its left edge dragged.
detect_averaging
¶
project.detect_averaging: the steady stretch of a history found
and as many frames as fit in it (TimeHistory.suggest_averaging),
keeping the frame, window and overlap it already has.
set_filter
¶
project.set_filter: a time history's filter, set and applied in
one place (Brandon, 2026-11-17: Set Filter and Apply Filter were two
actions for one thing). A low-pass takes the high edge, a high-pass the
low edge and a band-pass both. The settings are stored on the history
either way. Without keep the picked record is drawn as recorded and
as the filter would leave it; with it the filtered history is added
(Project.filter_data), every channel at zero phase. With several
histories picked (more) the first is previewed, and Apply filters each
the same way into a group of their own (Project.filter_histories).
set_truncation
¶
project.set_truncation: the span Apply Truncation keeps, on the
record's own clock and inside it.