save_to_file#
- ZIDeviceSettingsModule.save_to_file(filename: str | Path, device: DeviceType | str, timeout: int = 30) None [source]#
Save the device settings to a LabOne settings file.
This function creates an new module instance to avoid misconfiguration. It is also synchronous, meaning it will block until save operation has finished.
- Parameters:
filename (str | Path) – The path to the settings file.
device (DeviceType | str) – The device which settings should be saved.
timeout (int) – Max time to wait for the loading to finish.
- Raises:
TimeoutError – If the loading of the settings timed out.
- Return type:
None