Skip to content

hertzforge.service.ops_time_compare

ops_time_compare

Two sets of time responses compared station by station: TRAC / Overlay.

The test's records and the model's are paired by DOF and quantity and put on one clock, and every pair is scored over the scoring window (core.time_compare). The reading is the score table, one row a station with its TRAC, sTRAC, correlation and RMS ratio, the picked station's two traces drawn over each other with the window marked, and a summary. A row picked in the table draws that station.

The two sets are two time histories, or every history of two object groups picked together (Project.time_history_sets), as when each channel of a file is a history of its own and each file's histories are a group. Swap makes the second set the test.

Save adds the comparison to the project (Project.compare_time_histories). A saved comparison picked in the tree draws the same reading, the stations picked under it overlaid, and Scoring Window keeps a new window on it, also by dragging the window's edges on the plot.

Functions:

Name Description
side_label

What one side of a comparison is called: its one history's name,

labels_of

The two sides of a comparison as side_label names them, from its pairs.

comparison_stage

Every station of a comparison at once on the 3-D stage: time across,

comparison_views

The reading of a comparison, saved or not: the picked stations'

compare_time_histories

project.compare_time_histories: the test's and the model's

time_comparison

project.time_comparison: a saved comparison's reading, the

pairs_table

A comparison's pairs as a table to edit (Edit Pairs): one row a

edit_time_comparison_pairs

project.edit_time_comparison_pairs: a saved comparison's pairs, a

set_time_comparison_pair

project.set_time_comparison_pair: one record of one pair chosen

remove_time_comparison_pairs

project.remove_time_comparison_pairs: pairs taken out of a saved

time_comparison_map

project.time_comparison_map: a saved comparison's scores on the

set_time_comparison_window

project.set_time_comparison_window: a new scoring window kept on a

Classes

Functions:

side_label

side_label(project: Any, names: list[str]) -> str

What one side of a comparison is called: its one history's name, or the name of the group its histories share (an imported file's), or how many histories it is.

labels_of

labels_of(project: Any, data: Any) -> tuple[str, str]

The two sides of a comparison as side_label names them, from its pairs.

comparison_stage

comparison_stage(data: Any, rows: list[dict], labels: tuple[str, str], stations: list[int]) -> dict

Every station of a comparison at once on the 3-D stage: time across, stations receding, amplitude up, the test's trace colored by level and the model's in the reference gray at the same depth, each station named with its TRAC. The stations picked are the ones drawn when more than one is picked; a quantity other than the first station's is left out, since the stage has one amplitude axis.

comparison_views

comparison_views(title: str, data: Any, stations: list[int], labels: tuple[str, str], *, select: dict[str, Any] | None = None, drag: dict[str, Any] | None = None, flat: bool = True) -> list[dict]

The reading of a comparison, saved or not: the picked stations' traces overlaid with the scoring window marked, the score table, and the summary. labels name the test's side and the model's, select is what picking a table row runs, drag what dragging the window's edges runs. Without flat the stage of every station (comparison_stage) takes the overlay's place.

compare_time_histories

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

project.compare_time_histories: the test's and the model's records paired and scored (core.time_compare.compare), previewed; with keep, the comparison added (Project.compare_time_histories) and its reading drawn.

time_comparison

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

project.time_comparison: a saved comparison's reading, the station picked in its table or the stations picked under it in the tree drawn (each station is two records, the test's and the model's).

pairs_table

pairs_table(project: Any, name: str) -> dict

A comparison's pairs as a table to edit (Edit Pairs): one row a station, its first record and its second, each chosen from the response records of its side's histories; rows are removed with Delete.

edit_time_comparison_pairs

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

project.edit_time_comparison_pairs: a saved comparison's pairs, a table whose cells pick another record and whose rows are deleted.

set_time_comparison_pair

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

project.set_time_comparison_pair: one record of one pair chosen anew (Project.set_time_comparison_pairs); a record another pair holds changes places with this pair's.

remove_time_comparison_pairs

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

project.remove_time_comparison_pairs: pairs taken out of a saved comparison, by station number; one pair at least stays.

time_comparison_map

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

project.time_comparison_map: a saved comparison's scores on the test's geometry, each station a point at its node colored by its TRAC or sTRAC, or carried onto a finite element model as a see-through contour under the stations (core.time_compare.spread_scores, the nearest station's score or an inverse-distance-squared mean), with the mean over the stations drawn in the note.

set_time_comparison_window

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

project.set_time_comparison_window: a new scoring window kept on a saved comparison (Project.set_time_comparison_window), and its reading over it.