compare_results: debug timestamps

This commit is contained in:
Theophile Terraz committed 2025-01-27 17:34:47 +01:00
1 parent 4e87135bf4
commit 589b8dcd23
6 files changed
+23 -22

No files matched your search

+3 -4
View File
@@ -42,12 +42,11 @@ class PlotRKC(PamhyrPlot):
parent=parent
)
self._timestamps = results[res_id].get("timestamps")
self._current_timestamp = max(results[res_id].get("timestamps"))
self._current_timestamp = max(self._timestamps)
self._current_reach_id = reach_id
self._current_profile_id = profile_id
self._current_res_id = res_id
self._timestamps = parent._timestamps
self._current_timestamp = max(self._timestamps)
self.label_x = self._trad["unit_rk"]
self.label_y = self._trad["unit_elevation"]
@@ -65,7 +64,7 @@ class PlotRKC(PamhyrPlot):
@results.setter
def results(self, results):
self.data = results
self._current_timestamp = max(results[self._current_res_id].get("timestamps"))
self._current_timestamp = max(self._timestamps)
@timer
def draw(self, highlight=None):