load_from_file#

ZIDeviceSettingsModule.load_from_file(filename: str | Path, device: 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 (str | Path) – The path to the settings file.

  • device (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