Merge branch 'master' into temperature_test

This commit is contained in:
Dylan Jeannin committed 2026-07-17 10:09:52 +02:00
commit 885c8ea502
287 files changed
+1448 -691

No files matched your search

+17 -2
View File
@@ -1,5 +1,5 @@
# MainWindow.py -- Pamhyr
# Copyright (C) 2023-2025 INRAE
# Copyright (C) 2023-2026 INRAE
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -105,7 +105,7 @@ from View.CheckList.WindowAdisTS import CheckListWindowAdisTS
from View.Results.WindowAdisTS import ResultsWindowAdisTS
from View.Results.ReadingResultsDialog import ReadingResultsDialog
from View.Debug.Window import ReplWindow
from View.Debug.Window import ReplWindow, TimerWindow
from View.OutputRKAdisTS.Window import OutputRKAdisTSWindow
from View.Pollutants.Window import PollutantsWindow
from View.D90AdisTS.Window import D90AdisTSWindow
@@ -438,21 +438,28 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
self.debug_action.setToolTip(self._trad["open_debug"])
self.debug_action.triggered.connect(self.open_debug)
self.debug_timer_action = QAction("Timers", self)
self.debug_timer_action.setToolTip(self._trad["open_debug_timer"])
self.debug_timer_action.triggered.connect(self.open_debug_timer)
self.debug_sqlite_action = QAction("Debug SQLite", self)
self.debug_sqlite_action.setToolTip(self._trad["open_debug_sql"])
self.debug_sqlite_action.triggered.connect(self.open_sqlite)
if self.conf.debug:
menu.addAction(self.debug_action)
menu.addAction(self.debug_timer_action)
menu.addAction(self.debug_sqlite_action)
self.set_debug_lvl(debug=True)
else:
if self.conf.debug:
menu.addAction(self.debug_action)
menu.addAction(self.debug_timer_action)
menu.addAction(self.debug_sqlite_action)
self.set_debug_lvl(debug=True)
else:
menu.removeAction(self.debug_action)
menu.removeAction(self.debug_timer_action)
menu.removeAction(self.debug_sqlite_action)
self.set_debug_lvl(debug=False)
@@ -2226,6 +2233,14 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
)
repl.show()
def open_debug_timer(self):
repl = TimerWindow(
study=self._study,
config=self.conf,
parent=self
)
repl.show()
def open_sqlite(self):
if self._study is None:
logger.debug("No study open for sql debuging...")