hertzforge.service.fitting¶
fitting
¶
Fitting modes by hand on the connection's project: the
fitting screen over the protocol (fit.*).
One mode at a time, on the residual. Find Mode moves the cursor to the
most prominent peak left in the residual CMIF inside the frequencies on
screen, fit.fit fits wherever the cursor lands without adding the mode,
so its synthesis can be judged, and Confirm Mode adds it; Refine fits every confirmed mode's
residues again together, and Publish puts the fit in the project as a
shape set. The session is the core's ModalFitSession, so a fit made
here and one made in a script are the same fit. A session started from a
shape set adopts it (Edit Fit), and publishing replaces that set.
Every answer carries the session's state and one spectrum view: each
measured CMIF singular value solid, the synthesis's following it dashed in
its color, and the pending mode's curve under the cursor.
Classes:
| Name | Description |
|---|---|
Fit |
A fitting session on one FRF of the project, and what it was |
Functions:
| Name | Description |
|---|---|
start |
|
act |
One step of the fit, in the core's words when it refuses. |
delete |
|
edit |
|
publish |
|
save |
The fit kept in the project as it goes, as the earlier toolset kept it: the confirmed |
state |
What the shell shows: the pending mode, the preview, the confirmed |
Classes¶
Fit
dataclass
¶
Fit(session: Any, frf: str, shapes: str | None, measured: ndarray, coherence: str | None = None, residual: bool = False, created: bool = False)
A fitting session on one FRF of the project, and what it was started from.
Functions:¶
start
¶
start(project: Any, params: Mapping[str, Any]) -> Fit
fit.start: a session on the FRF frf, on the records picked when
given, from the shape set shapes when given (Edit Fit), on the records
that set holds. Its least squares is weighted by the coherence coherence
names, or else by the one the project chooses (Project.fit_coherence),
with nothing to choose, as the earlier toolset weighted a fit (Brandon,
2026-11-14); none when no coherence covers the fit's responses, or when
coherence is empty.
act
¶
act(fit: Fit, method: str, params: Mapping[str, Any]) -> None
One step of the fit, in the core's words when it refuses.
delete
¶
fit.delete: confirmed modes taken back: each leaves the modes and the replay list, and the
preview, fitted against a residual that is gone, is dropped.
edit
¶
fit.edit: a confirmed mode's damping or description typed into its
row. The replay list follows the
damping, so taking the mode back or replaying the fit finds it.
publish
¶
publish(project: Any, fit: Fit, params: Mapping[str, Any]) -> str
fit.publish: the confirmed modes added to the project as a shape
set, or put in place of the set the fit was started from; its name.
save
¶
save(project: Any, fit: Fit) -> bool
The fit kept in the project as it goes, as the earlier toolset kept it: the confirmed
modes published after each change (publish), so nothing waits on a Publish and leaving
the fit loses nothing (Brandon, 2026-11-14). A set the fit added goes again when its last
mode is taken back; a set it was started from keeps what it had. Whether the project
changed.