hertzforge.service.ops_sheets¶
ops_sheets
¶
Sheets an author fills in by hand: the channel table (New Channel Table, Add Channel and its typed cells, with the sensor catalog filling a model's maker and a triax's other legs, and the calibration dates read against the test's), its specification sheet (Create Specification and Edit Specification: breakpoints, cross terms and bands, at a table's control or picked channels or on a specification), and the analyst's predicted responses a report reads a measurement against.
Every channel table these show is a table view in core.tables.table_of
order, edited in place through project.set_channel_cell; a breakpoint
table is edited through project.set_breakpoint. The cells are written
by the core's own setters (ChannelTable.set_cell,
SpecificationDraft.with_level and with_slope), and a specification
is written by Project.author_specification, as the app writes it.
Functions:
| Name | Description |
|---|---|
cell_widgets |
(kinds, choices) of a channel table's columns for the table view's |
channel_table |
A channel table: |
add_controller_settings |
|
remove_controller_settings |
|
new_channel_table |
|
add_channels |
|
set_channel_cell |
|
set_sensor_model |
|
calibration_check |
|
breakpoint_table |
The sheet's breakpoints: a row |
create_specification |
|
specification_areas |
|
add_breakpoint |
|
remove_breakpoint |
|
scale_specification |
|
set_band_edge |
|
edit_specification |
|
set_breakpoint |
|
prediction_table |
A predictions object as a table: a row per channel predicted. |
predict |
|
Classes¶
Functions:¶
cell_widgets
¶
(kinds, choices) of a channel table's columns for the table view's
edit: each column's kind from ChannelTable.COLUMNS, a choice
column's list, the unit shortlist, and the sensor catalog's models.
channel_table
¶
channel_table(project: Any, name: str, title: str | None = None, environment: str | None = None) -> dict
A channel table:
its columns, then the direction columns derived from the geometry
linked with it, each of its own columns edited through
project.set_channel_cell, with the widgets (cell_widgets). The
derived columns are read only, and so is Control on a table whose
control channels are per environment; environment names the loop
whose control channels that column shows.
add_controller_settings
¶
project.add_controller_settings: the channel table converted to
carry the settings a controller runs each channel at
(ChannelTable.add_controller_settings), so a test can run on it; a
table that has them is left as it is.
remove_controller_settings
¶
project.remove_controller_settings: the controller's columns taken
out of the channel table (ChannelTable.remove_controller_settings),
every other column as it was.
new_channel_table
¶
project.new_channel_table: an empty channel table added to the
project to fill in by hand (Project.new_channel_table); Add Channel adds its rows.
add_channels
¶
project.add_channels: blank channels added at the end of a channel
table, numbered on from its highest (Project.add_channels); their cells are typed in after.
set_channel_cell
¶
project.set_channel_cell: one cell of a channel table typed over,
by row (from 1) and column, through the column's own rule
(ChannelTable.set_cell): a value the column cannot hold is refused in
the core's words and the cell is unchanged. A model the sensor catalog
knows fills a blank Make, and a triax's other legs at its node; a
type clears a unit of another kind; on a table linked with the time
data it describes, Role is set on both (Project.set_channel_role).
What else the edit changed is read out beside the table.
set_sensor_model
¶
project.set_sensor_model: a channel's model picked from the sensor
catalog (core.sensor_catalog), the drop-down of the
Model cell, written as the cell is (ChannelTable.set_cell): its
maker fills a blank Make, and a triax fills its other legs at the
node.
calibration_check
¶
project.calibration_check: each sensor's calibration expiration
against the test's first and last day (core.calibration.span_of and
check): in date, expired before the test, lapsing during it, or no
date given, which is never read as in date. The table beside it is the
channel table, its Expiration cells typed in place.
breakpoint_table
¶
The sheet's breakpoints: a row
per breakpoint, its frequency and a level per channel in the channel's
SI density, and by slope the slope into it beside each level; each
cell edited through project.set_breakpoint.
create_specification
¶
project.create_specification: a specification sheet opened at a
channel table's control channels (SpecificationDraft
.at_control_channels) or at picked rows whatever their role
(at_rows), filled in, and written beside the table
(Project.author_specification). Left blank, the sheet is the starter: a flat
line from 20 to 2000 Hz at one SI unit of density, ±3 dB warning and
±6 dB abort, no cross term stated.
specification_areas
¶
project.specification_areas: the Areas and running rms of a channel's breakpoints,
written nowhere (SpecificationDraft.reading).
add_breakpoint
¶
project.add_breakpoint: a breakpoint at a frequency, its levels read off the power
law between its neighbors and the segment's band kept on both halves
(SpecificationDraft.with_breakpoint).
remove_breakpoint
¶
project.remove_breakpoint: a breakpoint gone, its neighbors joined
(SpecificationDraft.without_breakpoint).
scale_specification
¶
project.scale_specification: a specification's levels raised or lowered by decibels,
on every channel or the ones named (SpecificationDraft.scaled_db).
set_band_edge
¶
project.set_band_edge: one edge of a band, in the segments named, set to a level in
decibels from the target (SpecificationDraft.with_band_edge), as a drag on the flat
plot lands: it snaps to the grid, and a symmetric or uniform channel follows.
edit_specification
¶
project.edit_specification: a specification opened as a sheet
(SpecificationDraft.from_specification), on every channel or the
ones named, the sheet's fields applied, and written back into it
under its own name (Project.author_specification with replace), as
each edit on the Edit Specification sheet lands. Named
channels are merged back; the others are unchanged.
set_breakpoint
¶
project.set_breakpoint: one cell of a specification's breakpoint
table typed over, by row (from 1) and column ('frequency', a
channel's level, or by slope a channel's slope in dB per octave), and
written into the specification (Project.author_specification with
replace). A level is SpecificationDraft.with_level (by slope, every
slope after it held), a slope with_slope. A frequency moves the
breakpoint and the rows re-sort.
prediction_table
¶
A predictions object as a table: a row per channel predicted.
predict
¶
project.predict: one response channel's predicted response, the
analyst's peaks, entered into a predictions object, made when the
project has none of that name (Project.predict); a prediction held
for the channel and quantity is replaced. A report reads a measurement
against these (Responses Against Prediction).