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
endstationfrom the happi databasedb.This depends on a JSON
happidatabase stored somewhere in the file system and handles setting up thehappi.Clientand 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