mirror of https://gitlab.com/pamhyr/pamhyr2
Pamhyr2: Fix pep8.
parent
5ca763ac8c
commit
de180b3635
|
|
@ -541,7 +541,7 @@ class Study(SQLModel):
|
|||
empty shell, it's not fully functional. Study object use
|
||||
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -302,7 +302,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||
"action_menu_results_last": self.open_last_results,
|
||||
"action_menu_open_results_from_file": self.open_results_from_file,
|
||||
# "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,
|
||||
# Help
|
||||
"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)
|
||||
ts = sorted(
|
||||
list(
|
||||
result1.get("timestamps")\
|
||||
.intersection(result2.get("timestamps"))
|
||||
result1.get("timestamps").intersection(
|
||||
result2.get("timestamps")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ _translate = QCoreApplication.translate
|
|||
logger = logging.getLogger()
|
||||
|
||||
|
||||
|
||||
class CompareSolversWindow(PamhyrDialog):
|
||||
_pamhyr_ui = "CompareSolvers"
|
||||
_pamhyr_name = "Compare solvers"
|
||||
|
|
@ -163,7 +162,7 @@ class CompareScenariosWindow(PamhyrDialog):
|
|||
scenarios = self._study.scenarios.lst
|
||||
scenarios_name = list(
|
||||
map(
|
||||
lambda s : s.name, scenarios
|
||||
lambda s: s.name, scenarios
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue