@@ -52,7 +52,7 @@ def __init__(self):
52
52
53
53
# Main variables to keep details of current open logs etc.
54
54
self ._log : Log | None = None
55
- self ._log_file_names = None
55
+ self ._current_model_ui_title = ""
56
56
57
57
# Canvas etc. comments TODO
58
58
@@ -90,10 +90,11 @@ def _action_open_file(self):
90
90
print ("Cancelled dialog" )
91
91
return
92
92
93
- self .setWindowTitle (self ._open_file_dialog_chosen_model_title )
94
- self ._log_file_names = self ._open_file_dialog_chosen_files
93
+ self ._current_model_ui_title = self ._open_file_dialog_chosen_model_title
94
+ self .setWindowTitle (self ._current_model_ui_title )
95
+
95
96
self ._log = Log (self ._config_manager .get_log_directory ())
96
- self ._log .load_all (self ._log_file_names , self ._please_wait , self ._current_track ,
97
+ self ._log .load_all (self ._open_file_dialog_chosen_files , self ._please_wait , self ._current_track ,
97
98
self ._config_manager .get_calculate_new_reward (),
98
99
self ._config_manager .get_calculate_alternate_discount_factors ())
99
100
@@ -103,9 +104,10 @@ def _chosen_open_file_callback(self, file_names, model_title):
103
104
104
105
def _action_file_info (self ):
105
106
print ("DEBUG FILE INFO" )
106
- print (self ._log .get_log_directory ())
107
- print (self ._log .get_log_file_name ())
108
- print (self ._log .get_meta_file_name ())
107
+ print ("Title / Model Name =" , self ._current_model_ui_title )
108
+ print ("Log directory =" , self ._log .get_log_directory ())
109
+ print ("Log filename(s) =" , self ._log .get_log_file_name ())
110
+ print ("Log meta filename(s) =" , self ._log .get_meta_file_name ())
109
111
110
112
def _action_change_log_directory (self ):
111
113
new_directory = QFileDialog .getExistingDirectory (self , self ._actions .change_log_directory .statusTip (), self ._config_manager .get_log_directory ())
0 commit comments