PyTracerLab.gui.uncertainty module¶
Measurement uncertainty settings of the GUI (shared by all solvers).
Translates the settings in AppState into the
sigma / sigma_rel arguments of the solvers (see
Solver). The module does not depend on Qt.
Settings¶
use_file_uncertainty: use the uncertainties from the_sdcolumns of the observation file where given.uncertainty_modefor all other observations:"none"(DE and least squares unweighted, MCMC and DREAM estimate the standard deviation of each tracer),"absolute"(sigma_abs, one standard deviation per tracer) or"relative"(sigma_rel_percentof the observed value).
- PyTracerLab.gui.uncertainty.effective_sigma(state) numpy.ndarray | None[source]¶
Standard deviation of each observation as used by the solvers (for plots).
Returns
Noneif no uncertainties are specified. If the settings leave some observations without uncertainty (the solver would report an error), only the values from the observation file are returned.
- PyTracerLab.gui.uncertainty.file_uncertainty(state) numpy.ndarray | None[source]¶
Uncertainties from the observation file as an array
(N, K).Noneif no observation file is loaded or the file has no_sdvalues.
- PyTracerLab.gui.uncertainty.observations(state) numpy.ndarray | None[source]¶
Observed values as an array
(N, K), orNone.