fix to stats when no json file is defined
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user