|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | TestCeaCachePresets |
Functions | |
| _presets () | |
Variables | |
| ROOT = Path(__file__).resolve().parents[1] | |
| str | PRESET_DIR = ROOT / "configs" / "propellants" |
Every committed propellant preset must ship a matching CEA cache table. This is the guard that would have caught kerolox shipping with no cache: the UI exposes every configs/propellants/*.yaml preset, and switching to one whose cache_file is missing falls through to a live rocketcea build -- minutes of synchronous work that hangs the UI. Contributors regenerate caches by hand (see .github/workflows/regenerate-cea-cache.yml), so nothing but this test stops a new preset, a renamed cache_file, or a schema bump from silently losing its table. Reads only (np.load + metadata compare) -- no rocketcea, so it runs in the CI subset exactly like the rest of the gate.
|
protected |
Definition at line 27 of file test_cea_cache_presets.py.
Referenced by test_cea_cache_presets.TestCeaCachePresets.test_every_preset_has_a_matching_cache(), and test_cea_cache_presets.TestCeaCachePresets.test_preset_dir_is_not_empty().
| str test_cea_cache_presets.PRESET_DIR = ROOT / "configs" / "propellants" |
Definition at line 24 of file test_cea_cache_presets.py.
| test_cea_cache_presets.ROOT = Path(__file__).resolve().parents[1] |
Definition at line 23 of file test_cea_cache_presets.py.