compare_results
Theophile Terraz 2024-11-04 10:44:09 +01:00
parent 38560cdcf5
commit e25a3ae98c
1 changed files with 3 additions and 2 deletions

View File

@ -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=',',