From 295ceaa70229fd01289f02f72f3713b0763af11e Mon Sep 17 00:00:00 2001
From: Theophile Terraz <theophile.terraz@inrae.fr>
Date: Tue, 16 Jul 2024 16:44:20 +0200
Subject: [PATCH] debug velocity computation

---
 src/View/MainWindow.py    | 4 ----
 src/View/Results/Table.py | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py
index 1eb655b4..946eb54e 100644
--- a/src/View/MainWindow.py
+++ b/src/View/MainWindow.py
@@ -141,10 +141,6 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
         # Translate
         self._trad = MainTranslate()
 
-        # Results
-        self._last_solver = None
-        self._last_results = None
-
         # UI
         self.ui = loadUi(
             os.path.join(os.path.dirname(__file__), "ui", "MainWindow.ui"),
diff --git a/src/View/Results/Table.py b/src/View/Results/Table.py
index 22be35d5..08ca63ed 100644
--- a/src/View/Results/Table.py
+++ b/src/View/Results/Table.py
@@ -88,7 +88,7 @@ class TableModel(PamhyrTableModel):
                 return f"{v:.4f}"
             elif self._headers[column] == "speed":
                 q = self._lst[row].get_ts_key(self._timestamp, "Q")
-                z = self._lst[row].get_ts_key(self._timestamp, "Q")
+                z = self._lst[row].get_ts_key(self._timestamp, "Z")
 
                 v = self._lst[row].geometry.speed(q, z)
                 return f"{v:.4f}"
-- 
GitLab