hertzforge.service.ops_sine_shock¶
ops_sine_shock
¶
Sine and shock readings of a time history: the sine extraction's settings and the levels against their specification, the distortion, dwell, frequency and mixed-mode readouts under them, and the classical pulse, stroke, replication fit and scalogram readings of a shock record. Each reads the record and adds nothing to the project; the sine extraction's settings and the shock windows are stored on the record.
Functions:
| Name | Description |
|---|---|
sine_extraction |
|
picked_dofs |
The control DOFs picked under a sine specification or a level set, |
sine_dofs |
The control DOFs a sine specification or a level set covers, in |
sine_lines |
The flat reading of one tone: each level of it at each control |
sine_error_rows |
The Level Error reading's rows: each channel's signed RMS deviation |
level_error |
|
distortion |
|
frequency_check |
|
dwell |
|
mixed_mode |
|
pulse_edge |
The edge of a pulse a param gave: none on a half-sine, and an edge |
pulse_check |
|
stroke |
|
replication_fit |
|
wavelet |
|
shocks |
|
set_shock |
|
remove_shock |
|
Classes¶
Functions:¶
sine_extraction
¶
project.sine_extraction: the settings a sweep's levels are read
out of a record with, stored on the record, and what follows from them: the cycles the
automatic smoothing chose (core.sine.suggest_cycles), the
smoothing window at the first tone's start and end, the median
scatter a reading is predicted to have and the share of samples under
the noise floor, read off the levels sampled at that smoothing
(core.sine.sample_levels), which are drawn against frequency.
Extract Sine then reads the levels with these settings.
picked_dofs
¶
The control DOFs picked under a sine specification or a level set,
numbered as the tree lists them (sine_dofs); None for every DOF when
text is blank.
sine_dofs
¶
The control DOFs a sine specification or a level set covers, in order: the specification's own, or the union of its levels', since a tone the instructions windowed may have been read at fewer DOFs.
sine_lines
¶
sine_lines(spec: Any, tone: str, levels: list[Any], dofs: list[str] | None = None) -> tuple[list[dict], str | None]
The flat reading of one tone: each level of it at each control
channel (measured), over the tone's requirement and its warning and
abort limits from spec when there is one; (lines, amplitude unit).
dofs restricts the channels drawn, as picks in the tree do.
sine_error_rows
¶
sine_error_rows(spec: Any, levels: list[Any], threshold: float, dofs: list[str] | None = None) -> list[dict]
The Level Error reading's rows: each channel's signed RMS deviation
in dB across the sweep, per tone (core.compliance.sine_errors),
judged against threshold; a pair that cannot be scored keeps its row
with the reason. dofs restricts the channels, as picks do.
level_error
¶
project.level_error: extracted sine levels against the
specification they were controlled to, the Sine view.
The Levels reading draws one tone's levels at each control channel
over its requirement (SineSweepSpecification.tone_curve); the Level
Error reading is each channel's signed RMS deviation in dB across the
sweep, per tone (core.compliance.sine_errors), judged against the
threshold either way.
distortion
¶
project.sine_distortion: what a sine record carries besides its
tones (core.sine_distortion.check_distortion), read from the levels
last extracted from it: the RMS of the record less the tracked tones
against the RMS of the tones at every line of the sweep, as a
distortion in percent, against the limit a tolerance on their ratio
sets, on one control channel.
frequency_check
¶
project.sine_frequency: whether a sine record's tone was at the
frequency its profile asks for (core.sine_frequency.check_frequency),
read from the levels last extracted from it: the tone's own frequency
against the specification's at every line of the sweep, as an error
in percent, against a band set as a share of the frequency with a
floor in hertz, on one control channel.
dwell
¶
project.dwell: a held tone's build-up and ring-down
(core.dwell.read_dwell): on one channel (a response by default),
the peak over each cycle against time, the steady level the dwell
reached, the cycles it took to reach the share set here and the
cycles after the stop for the level to fall to the rest of it.
mixed_mode
¶
project.mixed_mode: a sine-on-random record's data sheet
(core.mixed_mode.judge_mixed): the tones tracked and taken out, the
floor judged on what is left with the lines about each tone left out,
each tone in amplitude, each narrowband at its own degrees of freedom
and the total unjudged, with the residual drawn over the reference.
pulse_edge
¶
The edge of a pulse a param gave: none on a half-sine, and an edge of zero a twentieth of the duration.
pulse_check
¶
project.pulse_check: one acceleration channel judged against a
classical pulse's tolerance envelope and its velocity change
(core.classical_pulse.check_pulse). A peak or duration left at zero
is the pulse of the shape asked for that the record most resembles,
rounded to three figures (core.classical_pulse.suggest_pulse).
stroke
¶
project.stroke: whether a shock pulse fits on the shaker
(core.stroke.read_stroke): one acceleration channel integrated
raw to velocity and displacement, and its peak velocity, its travel
each way and the force it asks for, each against the shaker's shock
rating where one is given.
replication_fit
¶
project.replication_fit: whether a shaker can play a reference
record (core.replication_fit.replication_fit): the force at its
largest peak, and its travel, velocity and the price of each
candidate high-pass cutoff, each case judged against the ratings; the
travel at one cutoff is drawn inside the stroke, over the sweep of
every candidate. The cutoff drawn when none is asked for is the
lowest that fits, else the lowest candidate.
wavelet
¶
project.wavelet: where one channel's frequencies are, moment by
moment: its Morlet scalogram over a log frequency axis, computed band
by band and peak-held to a picture's width of time columns
(core.wavelet.scalogram_peaks, as core.wavelet.reading does), the
ridge (core.wavelet.ridge) and the largest magnitude, with what of
the range is cone of influence. The range is clamped to what the
record carries.
shocks
¶
project.shocks: a time history's shock windows on one record and on
its stage, each dragged to move it (_shock_views).
set_shock
¶
project.set_shock: one shock window typed by its start and stop
on the record's clock; a
number one past the last adds a window. The window is held inside
the gap its neighbors leave (core.shocks.held_apart).
remove_shock
¶
project.remove_shock: one shock window dropped.