hutch_python.happi.get_happi_objs¶
- hutch_python.happi.get_happi_objs(db: str, light_ctrl: LightController, endstation: str, load_level: DeviceLoadLevel = DeviceLoadLevel.STANDARD) dict[str, Device] ¶
Get the relevant items for
endstation
from the happi databasedb
.This depends on a JSON
happi
database stored somewhere in the file system and handles setting up thehappi.Client
and querying the data base for items.Uses the paths found by the LightController, but does not use it to load the devices so we can do so ourselves and log load times.
- Parameters:
db (
str
) – path to the happi databaselight_ctrl (lightpath.LightController) – LightController instance constructed from the happi db
endstation (
str
) – Name of hutch
- Returns:
objs – A mapping from item name to item
- Return type:
dict