STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
spec.py File Reference

Go to the source code of this file.

Classes

class  feedtwin.model.spec.SpecError
class  feedtwin.model.spec._ModelScoped
class  feedtwin.model.spec.ParamSpec
class  feedtwin.model.spec.OptionSpec
class  feedtwin.model.spec.PortSpec
class  feedtwin.model.spec.StateSpec
class  feedtwin.model.spec.ComponentSpec

Namespaces

namespace  feedtwin
namespace  feedtwin.model
namespace  feedtwin.model.spec

Functions

str|None feedtwin.model.spec._bounds_problem (ParamSpec spec, Param param, str type_name)
list[str] feedtwin.model.spec._duplicates (list[str] names)
ComponentSpec feedtwin.model.spec.register_component_spec (ComponentSpec spec)
ComponentSpec feedtwin.model.spec.get_component_spec (str type_name)
list[str] feedtwin.model.spec.registered_component_types ()
None feedtwin.model.spec._ensure_loaded ()
list[ComponentSpec] feedtwin.model.spec.load_component_specs (Path path)
ComponentSpec feedtwin.model.spec._spec_from_toml (str type_name, dict[str, Any] body)
dict[str, Any] feedtwin.model.spec._table (str type_name, str block, str name, Any value)
Any feedtwin.model.spec._require (str type_name, str block, str name, Any value, str key)
Param|None feedtwin.model.spec._maybe_param (Any value, str where)
float|None feedtwin.model.spec._maybe_float (Any value)
Param feedtwin.model.spec.default_param (float value, str unit, str reference)

Variables

dict feedtwin.model.spec._SPECS = {}
 feedtwin.model.spec._SPECS_FILE = Path(__file__).with_name("components.toml")
bool feedtwin.model.spec._LOADED = False