mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-29 19:10:40 +01:00
acoused: Trace 'full_update' method.
This commit is contained in:
1 parent
5ea7879896
commit
29e826d34c
7 files changed
+16
-2
No files matched your search
@@ -59,6 +59,7 @@ from Model.acoustic_data_loader import AcousticDataLoader
|
|||||||
from Model.acoustic_data_loader_UBSediFlow import AcousticDataLoaderUBSediFlow
|
from Model.acoustic_data_loader_UBSediFlow import AcousticDataLoaderUBSediFlow
|
||||||
from Model.calibration_constant_kt import CalibrationConstantKt
|
from Model.calibration_constant_kt import CalibrationConstantKt
|
||||||
|
|
||||||
|
from tools import trace
|
||||||
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
|
||||||
@@ -733,6 +734,7 @@ class AcousticDataTab(QWidget):
|
|||||||
|
|
||||||
# -------------------- Functions for Acoustic dataTab --------------------
|
# -------------------- Functions for Acoustic dataTab --------------------
|
||||||
|
|
||||||
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ from View.checkable_combobox import CheckableComboBox
|
|||||||
import settings as stg
|
import settings as stg
|
||||||
|
|
||||||
from Model.acoustic_inversion_method_high_concentration import AcousticInversionMethodHighConcentration
|
from Model.acoustic_inversion_method_high_concentration import AcousticInversionMethodHighConcentration
|
||||||
|
from tools import trace
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
@@ -371,6 +372,7 @@ class AcousticInversionTab(QWidget):
|
|||||||
# ------------------------------------ Functions for Acoustic Inversion Tab ----------------------------------------
|
# ------------------------------------ Functions for Acoustic Inversion Tab ----------------------------------------
|
||||||
# ==================================================================================================================
|
# ==================================================================================================================
|
||||||
|
|
||||||
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|||||||
+3
-1
@@ -10,6 +10,8 @@ from PyQt5.QtCore import Qt
|
|||||||
|
|
||||||
import settings as stg
|
import settings as stg
|
||||||
|
|
||||||
|
from tools import trace
|
||||||
|
|
||||||
logger = logging.getLogger("acoused")
|
logger = logging.getLogger("acoused")
|
||||||
|
|
||||||
class NoteTab(QWidget):
|
class NoteTab(QWidget):
|
||||||
@@ -136,7 +138,7 @@ class NoteTab(QWidget):
|
|||||||
## ---------- Functions ----------
|
## ---------- Functions ----------
|
||||||
## -------------------------------
|
## -------------------------------
|
||||||
|
|
||||||
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ import Translation.constant_string as cs
|
|||||||
|
|
||||||
import settings as stg
|
import settings as stg
|
||||||
|
|
||||||
|
from tools import trace
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
logger = logging.getLogger("acoused")
|
logger = logging.getLogger("acoused")
|
||||||
@@ -271,6 +273,7 @@ class SampleDataTab(QWidget):
|
|||||||
|
|
||||||
self.groupbox_plot_PSD.setTitle(_translate("CONSTANT_STRING", cs.DISTRIBUTION_PLOT))
|
self.groupbox_plot_PSD.setTitle(_translate("CONSTANT_STRING", cs.DISTRIBUTION_PLOT))
|
||||||
|
|
||||||
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ import settings as stg
|
|||||||
from View.checkable_combobox import CheckableComboBox
|
from View.checkable_combobox import CheckableComboBox
|
||||||
from Model.acoustic_inversion_method_high_concentration import AcousticInversionMethodHighConcentration
|
from Model.acoustic_inversion_method_high_concentration import AcousticInversionMethodHighConcentration
|
||||||
|
|
||||||
|
from tools import trace
|
||||||
|
|
||||||
logger = logging.getLogger("acoused")
|
logger = logging.getLogger("acoused")
|
||||||
|
|
||||||
class SedimentCalibrationTab(QWidget):
|
class SedimentCalibrationTab(QWidget):
|
||||||
@@ -857,6 +859,7 @@ class SedimentCalibrationTab(QWidget):
|
|||||||
# ----------------------------------- Functions for Signal processing Tab --------------------------------------
|
# ----------------------------------- Functions for Signal processing Tab --------------------------------------
|
||||||
# ==============================================================================================================
|
# ==============================================================================================================
|
||||||
|
|
||||||
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|||||||
@@ -511,6 +511,7 @@ class SignalProcessingTab(QWidget):
|
|||||||
self.icon_clear = QIcon(path_icon("clear.png"))
|
self.icon_clear = QIcon(path_icon("clear.png"))
|
||||||
self.icon_apply = QIcon(path_icon("circle_green_arrow_right.png"))
|
self.icon_apply = QIcon(path_icon("circle_green_arrow_right.png"))
|
||||||
|
|
||||||
|
@trace
|
||||||
def full_update(self):
|
def full_update(self):
|
||||||
logger.debug(f"{__name__}: Update")
|
logger.debug(f"{__name__}: Update")
|
||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
|
|||||||
@@ -35,9 +35,10 @@ def trace(func):
|
|||||||
f"{head} Return {func.__module__}." +
|
f"{head} Return {func.__module__}." +
|
||||||
f"{func.__qualname__}: {value}"
|
f"{func.__qualname__}: {value}"
|
||||||
)
|
)
|
||||||
|
dt = t1-t
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"{head}[TIME] {func.__module__}." +
|
f"{head}[TIME] {func.__module__}." +
|
||||||
f"{func.__qualname__}: {t1-t} sec"
|
f"{func.__qualname__}: {dt:f} sec"
|
||||||
)
|
)
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|||||||
Reference in new issue
Block a user