Component Base Class
- class tabascal.components.Component[source]
Base class for all tabascal components
- build_constants() Dict[str, Any][source]
Return arrays that do not change during the forward pass.
Returns a dict of array_name -> array_value. These will be stored in constants as “_c/<ClassName>/array_name” by Model.__init__.
- require_double(config: Any) None[source]
Raise if this
requires_doublecomponent is run in single precision.Some components only work in double precision: the SGP4/phase trajectory components (differentiable orbits). Those set
requires_double = Trueand call this at the top ofsetupso they fail with a clear message under single precision instead of producing silently-wrong fp32 results. Driven by therequires_doubleflag so it stays in sync with the run-time preflight.