From f6362369354edd914ed9b15e1c4deae1a32a6e09 Mon Sep 17 00:00:00 2001 From: Theophile Terraz Date: Mon, 27 Jan 2025 11:04:13 +0100 Subject: [PATCH] debug open results multiple times --- src/View/MainWindow.py | 14 +++++++++----- src/View/Results/Window.py | 4 +++- src/View/Results/WindowAdisTS.py | 3 ++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index 16b76878..7ec5a46c 100644 --- a/src/View/MainWindow.py +++ b/src/View/MainWindow.py @@ -1437,8 +1437,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): ResultsWindow, data=[ self._study, - None, # No config - results] + None, # No config, + results._solver, + results._repertory, + results._name] ): return @@ -1493,8 +1495,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): self._study, None, # No config solver, - results, - self + results._repertory, + results._name, ] ): return @@ -1585,7 +1587,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): data=[ self._study, None] + # No config - results + [r._solver for r in results] + + [r._repertory for r in results] + + [r._name for r in results] ): #w = self.get_sub_window( #ResultsWindow, diff --git a/src/View/Results/Window.py b/src/View/Results/Window.py index ccae3493..28e44653 100644 --- a/src/View/Results/Window.py +++ b/src/View/Results/Window.py @@ -107,7 +107,9 @@ class ResultsWindow(PamhyrWindow): ) for r in results: - self._hash_data.append(r) + self._hash_data.append(r._solver) + self._hash_data.append(r._repertory) + self._hash_data.append(r._name) self._additional_plot = {} diff --git a/src/View/Results/WindowAdisTS.py b/src/View/Results/WindowAdisTS.py index 745ce08c..3b26d09f 100644 --- a/src/View/Results/WindowAdisTS.py +++ b/src/View/Results/WindowAdisTS.py @@ -98,7 +98,8 @@ class ResultsWindowAdisTS(PamhyrWindow): ) self._hash_data.append(self._solver) - self._hash_data.append(self._results) + self._hash_data.append(self._results._repertory) + self._hash_data.append(self._results._name) self._additional_plot = {} self._current_pol_id = [1]