Pamhyr2: Fix pep8.

scenarios
Pierre-Antoine 2025-10-28 11:12:45 +01:00
parent 5ca763ac8c
commit de180b3635
3 changed files with 7 additions and 6 deletions

View File

@ -541,7 +541,7 @@ class Study(SQLModel):
empty shell, it's not fully functional. Study object use empty shell, it's not fully functional. Study object use
SQLite connection to file, this copy as no valid connection. SQLite connection to file, this copy as no valid connection.
/!\ Please use this copy as read only object! (!) Please use this copy as read only object!
""" """
new = Study(copy=True) new = Study(copy=True)

View File

@ -302,7 +302,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
"action_menu_results_last": self.open_last_results, "action_menu_results_last": self.open_last_results,
"action_menu_open_results_from_file": self.open_results_from_file, "action_menu_open_results_from_file": self.open_results_from_file,
# "action_menu_compare_results": self.compare_results, # "action_menu_compare_results": self.compare_results,
"action_menu_compare_scenarios_results": self.compare_results_scenarios, "action_menu_compare_scenarios_results":
self.compare_results_scenarios,
"action_menu_open_results_adists": self.open_results_adists, "action_menu_open_results_adists": self.open_results_adists,
# Help # Help
"action_menu_pamhyr_users_wiki": self.open_doc_user, "action_menu_pamhyr_users_wiki": self.open_doc_user,
@ -1853,8 +1854,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
result3 = Results(study=self._study, solver=solver3) result3 = Results(study=self._study, solver=solver3)
ts = sorted( ts = sorted(
list( list(
result1.get("timestamps")\ result1.get("timestamps").intersection(
.intersection(result2.get("timestamps")) result2.get("timestamps")
)
) )
) )

View File

@ -32,7 +32,6 @@ _translate = QCoreApplication.translate
logger = logging.getLogger() logger = logging.getLogger()
class CompareSolversWindow(PamhyrDialog): class CompareSolversWindow(PamhyrDialog):
_pamhyr_ui = "CompareSolvers" _pamhyr_ui = "CompareSolvers"
_pamhyr_name = "Compare solvers" _pamhyr_name = "Compare solvers"
@ -163,7 +162,7 @@ class CompareScenariosWindow(PamhyrDialog):
scenarios = self._study.scenarios.lst scenarios = self._study.scenarios.lst
scenarios_name = list( scenarios_name = list(
map( map(
lambda s : s.name, scenarios lambda s: s.name, scenarios
) )
) )