|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| cea_arrays (cache) | |
| _cea_arrays_cached (cache) | |
CEA cache tables -> plain contiguous float64 arrays the njit kernels can read. Kept separate from kernels.py because this is the only place that touches the CEACache object model; the kernels below it see nothing but arrays.
|
protected |
Memoise cea_arrays for a cache, storing the result ON the cache object. NOT keyed on id(cache): a freed cache's id can be reused, which would silently serve a previous config's CEA tables in a multi-config process (test sessions, GUI config switches). This is the same hazard native_injector._ensure_cea documents and defends against with a token; tying the memo to the object's own lifetime is simpler and cannot leak.
Definition at line 33 of file cea.py.
References cea_arrays().
| engine.accel.cea.cea_arrays | ( | cache | ) |
Grids + 7 property tables (float64, C-order), Cf_vac with the _ensure_cea fallback.
Definition at line 11 of file cea.py.
Referenced by _cea_arrays_cached().