From e25a3ae98c4e36dc53201b09ce982088212bbfcc Mon Sep 17 00:00:00 2001 From: Theophile Terraz <theophile.terraz@inrae.fr> Date: Mon, 4 Nov 2024 10:44:09 +0100 Subject: [PATCH] debug --- src/View/Results/Window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/View/Results/Window.py b/src/View/Results/Window.py index 661d25d6..589aa189 100644 --- a/src/View/Results/Window.py +++ b/src/View/Results/Window.py @@ -614,10 +614,11 @@ class ResultsWindow(PamhyrWindow): first_line.append(f"Time: {timestamp}s") val_dict = self._export_rk(timestamp, y, filename) elif x == "time": - profile = self._get_current_profile() + profile_id = self._get_current_profile() + profile = reach.profile(profile_id) pname = profile.name if profile.name != "" else profile.rk first_line.append(f"Profile: {pname}") - val_dict = self._export_time(profile, y, filename) + val_dict = self._export_time(profile_id, y, filename) with open(filename, 'w', newline='') as csvfile: writer = csv.writer(csvfile, delimiter=',', -- GitLab