|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| setUp (self) | |
| test_engine_estimate_structure (self) | |
| test_wrapper_initialization (self) | |
| test_estimate_from_pressures_mock (self, mock_runner_class) | |
| test_estimate_without_stability (self, mock_runner_class) | |
| test_estimate_error_handling (self, mock_runner_class) | |
| test_caching (self) | |
| test_cache_stats (self) | |
| test_clear_cache (self) | |
| test_convenience_function (self) | |
Public Attributes | |
| PintleEngineConfig | config = load_config(config_path) |
Protected Member Functions | |
| PintleEngineConfig | _create_minimal_config (self) |
Test engine wrapper.
Definition at line 16 of file test_robust_ddp_engine_wrapper.py.
|
protected |
Create minimal config for testing.
Definition at line 34 of file test_robust_ddp_engine_wrapper.py.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.setUp | ( | self | ) |
Set up test fixtures.
Definition at line 19 of file test_robust_ddp_engine_wrapper.py.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_cache_stats | ( | self | ) |
Test cache statistics.
Definition at line 271 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_caching | ( | self | ) |
Test that caching works correctly.
Definition at line 237 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_clear_cache | ( | self | ) |
Test cache clearing.
Definition at line 286 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_convenience_function | ( | self | ) |
Test convenience function.
Definition at line 295 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_engine_estimate_structure | ( | self | ) |
Test EngineEstimate dataclass structure.
Definition at line 117 of file test_robust_ddp_engine_wrapper.py.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_estimate_error_handling | ( | self, | |
| mock_runner_class ) |
Test estimate handles evaluation errors gracefully.
Definition at line 219 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_estimate_from_pressures_mock | ( | self, | |
| mock_runner_class ) |
Test estimate_from_pressures with mocked runner.
Definition at line 142 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_estimate_without_stability | ( | self, | |
| mock_runner_class ) |
Test estimate when stability results are not available.
Definition at line 194 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| test_robust_ddp_engine_wrapper.TestEngineWrapper.test_wrapper_initialization | ( | self | ) |
Test wrapper initialization.
Definition at line 135 of file test_robust_ddp_engine_wrapper.py.
References backend.routers.documents.CreatePayload.config, backend.routers.documents.ReleasePayload.config, backend.state.AppState.config, board_simulator.SimulatedBoard.config, calibration_robustness.AnomalyDetector.config, calibration_robustness.BackupManager.config, calibration_robustness.CalibrationValidator.config, calibration_robustness.HealthMonitor.config, calibration_robustness.RobustnessManager.config, combined_fsw_gui.ConfigManager.config, combined_gui.ConfigManager.config, emmc_log_t.config, engine.control.robust_ddp.engine_wrapper.EngineWrapper.config, engine.core.chamber_solver.ChamberSolver.config, engine.core.runner.PintleEngineRunner.config, engine.layerx.card.EngineSampler.config, engine.pipeline.cea_cache.CEACache.config, engine.pipeline.system_diagnostics.SystemDiagnostics.config, engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.config, idle_t.config, self_test_t.config, solenoid_characterization_gui.ConfigManager.config, StarOTA::Server.config, test_robust_ddp_constraints.TestConstraints.config, test_robust_ddp_dynamics.TestDynamics.config, and config.
| PintleEngineConfig test_robust_ddp_engine_wrapper.TestEngineWrapper.config = load_config(config_path) |
Definition at line 27 of file test_robust_ddp_engine_wrapper.py.
Referenced by test_cache_stats(), test_caching(), test_clear_cache(), test_convenience_function(), test_estimate_error_handling(), test_estimate_from_pressures_mock(), test_estimate_without_stability(), test_robust_ddp_robustness.TestRobustness.test_multiple_updates_convergence(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_basic(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_validation(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_widens(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_with_large_w_bar(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_basic(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_beta(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_ema_behavior(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_inflation(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_requires_mass_flow(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_residual_spike(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_with_engine_wrapper(), and test_wrapper_initialization().