labscheduler.dev_tools.utilities module¶
- labscheduler.dev_tools.utilities.parse_jobshop_from_yaml_file(yaml_file: str) list[Machine][source]¶
Parses a YAML file to create a list of Machine objects. The YAML file should contain a dictionary with two keys: - pythonlab_translation: a dictionary mapping device types to their corresponding classes - sila_servers: a dictionary where each key is a device type and the value is a list of devices with their parameters. Each device in the sila_servers list should have a name and a dictionary of parameters, including capacity, min_capacity, process_capacity, and allows_overlap. The function returns a list of Machine objects created from the data in the YAML file.