STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_cea_cache_presets Namespace Reference

Classes

class  TestCeaCachePresets

Functions

 _presets ()

Variables

 ROOT = Path(__file__).resolve().parents[1]
str PRESET_DIR = ROOT / "configs" / "propellants"

Detailed Description

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.

Function Documentation

◆ _presets()

Variable Documentation

◆ PRESET_DIR

str test_cea_cache_presets.PRESET_DIR = ROOT / "configs" / "propellants"

Definition at line 24 of file test_cea_cache_presets.py.

◆ ROOT

test_cea_cache_presets.ROOT = Path(__file__).resolve().parents[1]

Definition at line 23 of file test_cea_cache_presets.py.