visualdynamics.core.matches¶
matches
¶
Matched mode pairs between two shape sets.
The user picks MAC squares and commits them; the matches are a project object of their own — saveable, renameable, deletable row by row — not a report's private note. The sets are referenced by name and read live wherever the matches are shown, but the MAC values are stored with the picks: they came from the comparison as displayed, projected onto the basis DOFs when the geometries demanded it, and a name-matched recompute would not reproduce them.
Classes:
| Name | Description |
|---|---|
MatchedModes |
Pairs of (first-set mode, second-set mode) with their MAC. |
Classes¶
MatchedModes
¶
MatchedModes(
first: str,
second: str,
pairs: Sequence[Sequence[int]] | None = None,
macs: Sequence[float] | None = None,
first_geometry: str | None = None,
second_geometry: str | None = None,
)
Pairs of (first-set mode, second-set mode) with their MAC.
first and second name shape sets in the project; the first is
the comparison's basis — its frequencies are the Δf% baseline.
Committing the squares picked on a cross-MAC makes one of these, so the pairing is a thing in the project rather than a state of the window: a report binds to it by name, and reopening the project finds the same pairs.
Attributes:
first: The name of the set whose modes are the rows, and whose
frequencies the Δf% is measured from.
second: The name of the set whose modes are the columns.
pairs: [row mode, column mode] per committed pair, zero-based.
macs: The MAC of each pair, as it was computed when committed —
possibly after projecting onto the basis DOFs, which is why
it is stored rather than recomputed.
first_geometry: The geometry first was linked to at the time,
since a projection is only meaningful against it.
second_geometry: The same for second.
Methods:
| Name | Description |
|---|---|
add |
Add matches, restating the MAC of any pair already here. |
delete_matches |
Remove the matches at these row indices. |
rename_source |
A referenced set or geometry was renamed; the reference |
Source code in src/visualdynamics/core/matches.py
Methods:¶
add
¶
Add matches, restating the MAC of any pair already here.
Source code in src/visualdynamics/core/matches.py
delete_matches
¶
Remove the matches at these row indices.
Source code in src/visualdynamics/core/matches.py
rename_source
¶
A referenced set or geometry was renamed; the reference follows.