Skip to main content

write_fit

Function write_fit 

Source
pub(crate) fn write_fit(
    args: &Args,
    tr: &Translations,
    rows: &[FitRow],
    path: &str,
    sigmas: f64,
) -> Result<(), Failure>
Expand description

fit --write FILE: the config as the command line gives it, with each fitted quantity that is exactly one key of it set to the fitted value and a [bounds] entry of sigmas standard errors either side of it. Only the factor on a stiffness (--stiffness) is one key; every other quantity of the table is the trace’s value of what several keys make up (the moved mass of an axis, a friction that the motor, gearbox and guide share) or of none, and is named on the error stream with the reason, as is a key the file cannot take. The payload’s factor of a joint fit is not written either: on a cycle that picks and places, the trace holds the payload part of the time, and the factor is a share of that time as much as of the mass (the delta’s cycle with 4 kg against its 3 kg came out at 0.72 times the config’s). Comments of the written file are not kept and its keys come in alphabetical order (Config::to_text).