save_to_file#
- DeviceSettingsModule.save_to_file(filename: Union[str, Path], device: Union[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 (Union[str, Path]) – The path to the settings file.
device (Union[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