fix to stats when no json file is defined

This commit is contained in:
2026-08-03 00:01:21 -07:00
parent 61a9ea2f34
commit 7c456e31e7
7 changed files with 122 additions and 135 deletions
+2 -4
View File
@@ -329,6 +329,7 @@ DATA_SCHEMA = [
{"key": "config_dict", "help": "Dict[file_path, dict]: Processing configuration parameters"},
{"key": "fig_bytes_dict", "help": "Dict[file_path, dict]: Serialized figure data"},
{"key": "contrast_results_dict", "help": "Dict[file_path, dict]: Calculated contrast statistical results"},
{"key": "roi_channel_map_dict", "help": "Dict[file_path, dict]: Calculated contrast statistical results"},
{"key": "valid_dict", "help": "Dict[file_path, bool]: Boolean validity status per file"}
]
@@ -677,7 +678,6 @@ class MainApplication(QMainWindow):
self.analysis_clearing_bypass = False
self.folding_bypass = False
self.advanced_parameters = False
self.json_location = ""
# Initialization to ensure that saving can occur
@@ -1268,8 +1268,8 @@ class MainApplication(QMainWindow):
data_map["config_dict"],
data_map["fig_bytes_dict"],
data_map["contrast_results_dict"],
data_map["roi_channel_map_dict"],
self.folding_bypass,
self.json_location
]
self.launcher_window = ViewerLauncherWidget(*args)
@@ -2349,8 +2349,6 @@ class MainApplication(QMainWindow):
if self.folding_bypass:
all_params['FOLDING_BYP'] = True
self.json_location = all_params['JSON_LOCATION']
collected_data = {
"SNIRF_FILES": snirf_files,
"PARAMS": all_params, # add this line