Skip to content
Snippets Groups Projects
Commit 43804ca2 authored by Christoph Schmidt's avatar Christoph Schmidt
Browse files

Added option to set the log in the constructor

parent 0ea96420
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,10 @@ if __name__ == "__main__":
controller.internal_log_level = logging.DEBUG
controller.internal_log_enabled = True
window = Laser.View(model, controller)
controller.start_wavelength_sweep(
model.sweep_start_wavelength,
model.sweep_stop_wavelength,
)
window.show()
......
......@@ -30,8 +30,8 @@ class MPLaserDeviceControl(CProcessControl):
movement_finished_changed = Signal(bool, name='movement_finished_changed')
def __init__(self, model: LaserControlModel,
start_capture_flag: Value):
super().__init__()
start_capture_flag: Value, module_log=True, module_log_level=logging.WARNING):
super().__init__(module_log=module_log, module_log_level=module_log_level)
self.model = model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment