OutputSettings#
- class OutputSettings(save_prefit_residuals: bool = True, save_postfit_residuals: bool = True, save_covariance_history: bool = True, save_consider_covariance_history: bool = True, save_state_deviation_history: bool = True, save_kalman_gains: bool = False, save_innovation_covariances: bool = False, save_nis_statistics: bool = False, save_smoothed_solution: bool = True, solution_output_path: str | None = None, solution_output_name: str | None = 'solution', fdm_output_path: str | None = None, fdm_output_name: str | None = None, metadata: Dict | None = None)#
Bases:
objectConfiguration for
SolutionODoutput and storage.Controls which quantities the filter stores after a run and where JSON and
.npzoutput files are written. All flags default to sensible values; override only what you need.- Parameters:
save_prefit_residuals (
bool) – Store prefit residuals in the solution. Defaults toTrue.save_postfit_residuals (
bool) – Store postfit residuals in the solution. Defaults toTrue.save_covariance_history (
bool) – Store covariance evolution across measurement epochs. Defaults toTrue.save_consider_covariance_history (
bool) – Store consider-parameter covariance evolution. Defaults toTrue.save_state_deviation_history (
bool) – Store state deviation history across measurement epochs. Defaults toTrue.save_kalman_gains (
bool) – Store Kalman gain matrices at each epoch (debugging). Defaults toFalse.save_innovation_covariances (
bool) – Store innovation covariance matrices at each epoch (debugging). Defaults toFalse.save_nis_statistics (
bool) – Store Normalized Innovation Squared (NIS) statistics. Defaults toFalse.save_smoothed_solution (
bool) – Run the RTS/Bierman smoother after the forward pass and store the smoothed solution. Defaults toTrue.solution_output_path (
str, optional) – Directory for the JSON solution file.Nonedisables JSON output.solution_output_name (
str, optional) – Base filename (without extension) for the JSON solution file. Defaults to'solution'.fdm_output_path (
str, optional) – Directory to write per-dataset.npzfilter-data files.Nonedisables.npzoutput.fdm_output_name (
str, optional) – Base name prefix for filter-data files.metadata (
dict, optional) – Arbitrary user metadata (version, producer, description, etc.).
Notes
All boolean flags default to sensible values for a standard OD run. Override only what you need; unset flags revert to their defaults when an instance is created with no arguments.
See also
scarabaeus.SolutionODOD result container that respects these settings.
scarabaeus.FilterSettingsBundles this object with covariance and process noise.
- Attributes:
fdm_output_nameBase name prefix for filter-data files.
fdm_output_pathDirectory to write per-dataset
.npzfilter-data files.metadataArbitrary user metadata (version, producer, description, etc.).
save_consider_covariance_historyStore consider-parameter covariance evolution.
save_covariance_historyStore covariance evolution across measurement epochs.
save_innovation_covariancesStore innovation covariance matrices at each epoch (debugging).
save_kalman_gainsStore Kalman gain matrices at each epoch (debugging).
save_nis_statisticsStore Normalized Innovation Squared (NIS) statistics.
save_postfit_residualsStore postfit residuals in the solution.
save_prefit_residualsStore prefit residuals in the solution.
save_smoothed_solutionIf
True, run the RTS/Bierman smoother after the forward pass and store the smoothed solution.save_state_deviation_historyStore state deviation history across measurement epochs.
solution_output_nameBase filename (without extension) for the JSON solution file.
solution_output_pathDirectory to save the JSON solution file.
- property fdm_output_name: str | None#
Base name prefix for filter-data files. When set, files are named
{fdm_output_name}_{set_name}.npz.
- property fdm_output_path: str | None#
Directory to write per-dataset
.npzfilter-data files.Nonedisables.npzoutput.
- property save_consider_covariance_history: bool#
Store consider-parameter covariance evolution. Defaults to
True.
- property save_covariance_history: bool#
Store covariance evolution across measurement epochs. Defaults to
True.
- property save_innovation_covariances: bool#
Store innovation covariance matrices at each epoch (debugging). Defaults to
False.
- property save_kalman_gains: bool#
Store Kalman gain matrices at each epoch (debugging). Defaults to
False.
- property save_nis_statistics: bool#
Store Normalized Innovation Squared (NIS) statistics. Defaults to
False.
- property save_smoothed_solution: bool#
If
True, run the RTS/Bierman smoother after the forward pass and store the smoothed solution. Defaults toTrue.
- property save_state_deviation_history: bool#
Store state deviation history across measurement epochs. Defaults to
True.