load_from_file#

DeviceSettingsModule.load_from_file(filename: Union[str, Path], device: Union[DeviceType, str], timeout: float = 30) None[source]#

Load a LabOne settings file to a device.

This function creates an new module instance to avoid misconfiguration. It is also synchronous, meaning it will block until loading the settings has finished.

Parameters:
  • filename (Union[str, Path]) – The path to the settings file.

  • device (Union[DeviceType, str]) – The device to load the settings to.

  • timeout (float) – Max time to wait for the loading to finish.

Raises:

TimeoutError – If the loading of the settings timed out.

Return type:

None