Skip to content

hertzforge.service.tree

tree

What an object holds, for the project tree's expansions.

The shell's tree opens an object into what it contains from this answer (project.children). A geometry opens into its nodes, its coordinate systems, its elements by family with the element groups under each, its solids and its mated surfaces; its Nodes and Coordinate systems rows and each element group's row list what they hold, the first LISTED of a large one. A data object opens into a grid, even one column wide: rows are a DOF and a quantity, columns are what tells one record from another (the reference, the capture, or nothing), and each cell names its record, whose icon says what it measures. A shape set opens into its modes, a channel table and a sine object into their channels, photographs into their names, matched modes into their pairs, and any other object that holds a structure into items (a set of predictions, a report's blocks). opens says whether an object opens at all, which is the shell's only word on it.

Nothing here is drawn. The icon of a record is a key the shell draws from: a quantity ('acceleration'), two as a fraction, response over reference ('acceleration/force'), or '' for the object's own icon.

Functions:

Name Description
record_icon

What record index measures, as the shell's icon key: a quantity,

grid

A data object's records. A row is a DOF and a quantity:

listed_elements

The elements each element group's row lists, by group id: the rows of the first

children

What the object name holds, by what it is; {'kind': 'none'} for

opens

Whether an object opens in the tree: it holds a structure of items, which

banded

Whether a PSD or a specification is on proportional bands, which

Functions:

record_icon

record_icon(data: Any, index: int) -> str

What record index measures, as the shell's icon key: a quantity, a fraction of two ('acceleration/force', response over reference) or '' when the quantities have no glyph (a coherence, an undeclared channel), which leaves the object's own icon. A dimension_hint is enough to choose: a source that said "force" without a unit has still said what the record is.

grid

grid(data: Any) -> dict[str, Any]

A data object's records. A row is a DOF and a quantity: two channels can sit at one point, but a volt and a newton never share a row. When even that cannot tell channels apart (nothing declared, so every quantity is unknown) the channel order breaks the tie, and the row's label says so ('101Z+ #2'). Columns are the reference DOFs of a matrix of measurements, the captures of a repeated one, or one blank column, which is also what records that are each their own reference (ASDs) get. A set that does not fill its rectangle keeps its holes (-1). Time data has a role per row.

listed_elements

listed_elements(geometry: Any) -> dict[int, list[int]]

The elements each element group's row lists, by group id: the rows of the first LISTED of its elements, in the geometry's order. The tree lists them and the 3-D view marks them one at a time, so both read them here.

children

children(project: Any, name: str) -> dict[str, Any]

What the object name holds, by what it is; {'kind': 'none'} for one that opens into nothing (an empty report, a run log extract).

opens

opens(obj: Any) -> bool

Whether an object opens in the tree: it holds a structure of items, which children lists. The rule is the object's, not a list of kinds the shell keeps: one with items beneath it opens, whatever it is (Brandon, 2026-11-17).

Parameters:

Name Type Description Default
obj object

An object of the project.

required

Returns:

Type Description
bool

True when children answers anything but {'kind': 'none'} for it.

banded

banded(obj: Any) -> bool

Whether a PSD or a specification is on proportional bands, which changes its icon as it changes its shape.