-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_lightsheet.py
More file actions
30 lines (25 loc) · 1.16 KB
/
start_lightsheet.py
File metadata and controls
30 lines (25 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ##############################################################################
# Copyright (c) 2021 Aquiles Carattino, Dispertech B.V. #
# start_lightsheet.py is part of disperscripts #
# This file is released under an MIT license. #
# See LICENSE.MD for more information. #
# ##############################################################################
import time
import yaml
from PyQt5.QtWidgets import QApplication
from LightSheet.models.experiment import LightSheetExperiment
from LightSheet.view.microscope_window import LightsheetWindow
from experimentor.lib.log import log_to_screen, get_logger
if __name__ == "__main__":
logger = get_logger()
handler = log_to_screen(logger=logger)
experiment = LightSheetExperiment()
experiment.load_configuration('lightsheet.yml', yaml.UnsafeLoader)
executor = experiment.initialize()
while executor.running():
time.sleep(.1)
app = QApplication([])
microscope_window = LightsheetWindow(experiment)
microscope_window.show()
app.exec()
experiment.finalize()