优化文件路径配置,新增同步路径参数,增强输入文件检查逻辑
This commit is contained in:
@ -129,7 +129,9 @@ class SettingWindow(QMainWindow):
|
|||||||
|
|
||||||
self.params.update({
|
self.params.update({
|
||||||
"Path": {
|
"Path": {
|
||||||
|
"psg_path": sync_psg_path,
|
||||||
|
"bcg_path": sync_bcg_path,
|
||||||
|
"label_path": label_path,
|
||||||
"Input_OrgBCG": sync_bcg_path,
|
"Input_OrgBCG": sync_bcg_path,
|
||||||
"Input_Tho": sync_psg_path,
|
"Input_Tho": sync_psg_path,
|
||||||
"Input_Abd": sync_psg_path,
|
"Input_Abd": sync_psg_path,
|
||||||
@ -211,8 +213,15 @@ class SettingWindow(QMainWindow):
|
|||||||
|
|
||||||
self.params["Config"]["InputConfig"][f"{_type}Freq"] = result.data["freq"]
|
self.params["Config"]["InputConfig"][f"{_type}Freq"] = result.data["freq"]
|
||||||
else:
|
else:
|
||||||
self.params["Path"][f"Input_{_type}"] = file_path
|
filename_start = filename_start.replace("Sync", "RoughCut")
|
||||||
self.params["Config"]["InputConfig"][f"{_type}Freq"] = -1
|
result = PublicFunc.examine_file(file_path, filename_start, endswith)
|
||||||
|
if result.status:
|
||||||
|
self.params["Path"][f"Input_{_type}"] = result.data["path"]
|
||||||
|
|
||||||
|
self.params["Config"]["InputConfig"][f"{_type}Freq"] = result.data["freq"]
|
||||||
|
else:
|
||||||
|
self.params["Path"][f"Input_{_type}"] = file_path
|
||||||
|
self.params["Config"]["InputConfig"][f"{_type}Freq"] = -1
|
||||||
|
|
||||||
for signal_type in check_signal_type_list:
|
for signal_type in check_signal_type_list:
|
||||||
signal_file_path = Path(self.params["Path"][signal_type])
|
signal_file_path = Path(self.params["Path"][signal_type])
|
||||||
|
|||||||
Reference in New Issue
Block a user