Skip to content

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

project.add_controller_settings: the channel table converted to

remove_controller_settings

project.remove_controller_settings: the controller's columns taken

new_channel_table

project.new_channel_table: an empty channel table added to the

add_channels

project.add_channels: blank channels added at the end of a channel

set_channel_cell

project.set_channel_cell: one cell of a channel table typed over,

set_sensor_model

project.set_sensor_model: a channel's model picked from the sensor

calibration_check

project.calibration_check: each sensor's calibration expiration

breakpoint_table

The sheet's breakpoints: a row

create_specification

project.create_specification: a specification sheet opened at a

specification_areas

project.specification_areas: the Areas and running rms of a channel's breakpoints,

add_breakpoint

project.add_breakpoint: a breakpoint at a frequency, its levels read off the power

remove_breakpoint

project.remove_breakpoint: a breakpoint gone, its neighbors joined

scale_specification

project.scale_specification: a specification's levels raised or lowered by decibels,

set_band_edge

project.set_band_edge: one edge of a band, in the segments named, set to a level in

edit_specification

project.edit_specification: a specification opened as a sheet

set_breakpoint

project.set_breakpoint: one cell of a specification's breakpoint

prediction_table

A predictions object as a table: a row per channel predicted.

predict

project.predict: one response channel's predicted response, the

Classes

Functions:

cell_widgets

cell_widgets() -> tuple[dict[str, str], dict[str, list[str]]]

(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

add_controller_settings(project: Any, params: dict[str, Any]) -> list[dict]

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

remove_controller_settings(project: Any, params: dict[str, Any]) -> list[dict]

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

new_channel_table(project: Any, params: dict[str, Any]) -> list[dict]

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

add_channels(project: Any, params: dict[str, Any]) -> list[dict]

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

set_channel_cell(project: Any, params: dict[str, Any]) -> list[dict]

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

set_sensor_model(project: Any, params: dict[str, Any]) -> list[dict]

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

calibration_check(project: Any, params: dict[str, Any]) -> list[dict]

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

breakpoint_table(name: str, draft: Any, channels: str = '') -> dict

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

create_specification(project: Any, params: dict[str, Any]) -> list[dict]

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

specification_areas(project: Any, params: dict[str, Any]) -> list[dict]

project.specification_areas: the Areas and running rms of a channel's breakpoints, written nowhere (SpecificationDraft.reading).

add_breakpoint

add_breakpoint(project: Any, params: dict[str, Any]) -> list[dict]

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

remove_breakpoint(project: Any, params: dict[str, Any]) -> list[dict]

project.remove_breakpoint: a breakpoint gone, its neighbors joined (SpecificationDraft.without_breakpoint).

scale_specification

scale_specification(project: Any, params: dict[str, Any]) -> list[dict]

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

set_band_edge(project: Any, params: dict[str, Any]) -> list[dict]

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

edit_specification(project: Any, params: dict[str, Any]) -> list[dict]

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

set_breakpoint(project: Any, params: dict[str, Any]) -> list[dict]

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

prediction_table(name: str, predictions: Any) -> dict

A predictions object as a table: a row per channel predicted.

predict

predict(project: Any, params: dict[str, Any]) -> list[dict]

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).