Loading SimfPythonGUI/filehandlers.py +3 −2 Changes for SimfPythonGUI/filehandlers.py: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,8 +57,9 @@ class LicorThread(QThread): self.event_thread = event_thread def on_created(self, event): # TODO: Read licor file, convert to float, send to event self.event_thread.new_licor.emit(event.src_path) file = open(event.src_path, "r") output = float(file.read()) self.event_thread.new_licor.emit(output) def run(self): datadir = FileHandlerUtils.compute_current_data_dir() Loading SimfPythonGUI/main.py +7 −1 Changes for SimfPythonGUI/main.py: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ import pkg_resources from PyQt5.QtCore import QProcess, QProcessEnvironment, Qt from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import QMainWindow, QApplication, QGraphicsScene from .filehandlers import ImageThread from .filehandlers import ImageThread, LicorThread from .sudo import PasswordWindow from .about import AboutDialog from .config import Config, ConfigEditor Loading @@ -28,6 +28,9 @@ class MainWindow(QMainWindow): self.png_watcher = ImageThread() self.png_watcher.new_image.connect(self.update_image) self.licor_watcher = LicorThread() self.licor_watcher.new_licor.connect(self.update_licor) # Register Events self.startCapButton.clicked.connect(self.start_capture) self.stopCapButton.clicked.connect(self.stop_capture) Loading Loading @@ -102,6 +105,9 @@ class MainWindow(QMainWindow): # TODO: Capture progress self.current = (self.current + 1) % Config.dbg_lepton_set def update_licor(self, licor): self.solarIrradiance.display(licor) # Opens a link @staticmethod def open_link(link): Loading Loading
SimfPythonGUI/filehandlers.py +3 −2 Changes for SimfPythonGUI/filehandlers.py: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,8 +57,9 @@ class LicorThread(QThread): self.event_thread = event_thread def on_created(self, event): # TODO: Read licor file, convert to float, send to event self.event_thread.new_licor.emit(event.src_path) file = open(event.src_path, "r") output = float(file.read()) self.event_thread.new_licor.emit(output) def run(self): datadir = FileHandlerUtils.compute_current_data_dir() Loading
SimfPythonGUI/main.py +7 −1 Changes for SimfPythonGUI/main.py: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ import pkg_resources from PyQt5.QtCore import QProcess, QProcessEnvironment, Qt from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import QMainWindow, QApplication, QGraphicsScene from .filehandlers import ImageThread from .filehandlers import ImageThread, LicorThread from .sudo import PasswordWindow from .about import AboutDialog from .config import Config, ConfigEditor Loading @@ -28,6 +28,9 @@ class MainWindow(QMainWindow): self.png_watcher = ImageThread() self.png_watcher.new_image.connect(self.update_image) self.licor_watcher = LicorThread() self.licor_watcher.new_licor.connect(self.update_licor) # Register Events self.startCapButton.clicked.connect(self.start_capture) self.stopCapButton.clicked.connect(self.stop_capture) Loading Loading @@ -102,6 +105,9 @@ class MainWindow(QMainWindow): # TODO: Capture progress self.current = (self.current + 1) % Config.dbg_lepton_set def update_licor(self, licor): self.solarIrradiance.display(licor) # Opens a link @staticmethod def open_link(link): Loading