uataq.Laboratory#

class uataq.Laboratory(config)[source]#

Factory class for creating site objects from config file.

This class provides methods for creating site objects from a configuration file. The configuration file should contain information about the sites and their instruments.

Variables:
  • config (dict) – The configuration data, keyed by site ID.

  • sites (list[str]) – The site IDs in the configuration.

  • instruments (list[str]) – The names of the instruments configured at any site.

__init__(config)[source]#

Initialize the Laboratory class.

Parameters:

config (str | dict) – The path to the configuration file or a dictionary containing the configuration data.

Raises:

ValueError – If the configuration data is invalid.

Methods

get_site(SID)

Return site object from config file