cinnaboot
fc447db7f2
refactor: test_extreme_timescales into SCENARIO with 11 sections
...
- Consolidate 9 TEST_CASEs into 1 SCENARIO with 11 SECTIONs
- Add helper lambdas: propagate_n_periods, compute_energy, compute_period
- Use named tolerance constants for all WithinAbs assertions
- Tighten tolerances based on observed errors (REL_TOL 1e-9→1e-14)
- Convert TOML to 1.0 inline table syntax
- Add precalc script for expected values
- Remove duplicate setup code across test cases
Old test: 348 lines, 9 TEST_CASEs
New test: 330 lines, 1 SCENARIO, 11 SECTIONs
Net: -18 lines, -8 test cases
2 months ago
cinnaboot
b333a1745f
refactor test_maneuvers: add spacecraft struct to sim_engine, rewrite tests
...
- Add Spacecraft dataclass, BurnDirection enum, and burn functions to sim_engine.py
- Add spacecraft config loading, initialization, and propagation to Simulator
- Convert TOML config to TOML 1.0 inline table syntax
- Rewrite test_maneuvers.cpp as 1 SCENARIO with 6 SECTIONs (proper fixture reuse)
- Use local-frame distances for burn tests (global dominated by Earth-Sun distance)
- Tighten propagation stability checks: distance drift < 0.01%, a drift < 0.01%, e preserved within 1e-6
- Remove old test files
2 months ago