优化文件路径配置,新增同步路径参数,增强输入文件检查逻辑
This commit is contained in:
@ -129,7 +129,9 @@ class SettingWindow(QMainWindow):
|
||||
|
||||
self.params.update({
|
||||
"Path": {
|
||||
|
||||
"psg_path": sync_psg_path,
|
||||
"bcg_path": sync_bcg_path,
|
||||
"label_path": label_path,
|
||||
"Input_OrgBCG": sync_bcg_path,
|
||||
"Input_Tho": sync_psg_path,
|
||||
"Input_Abd": sync_psg_path,
|
||||
@ -205,6 +207,13 @@ class SettingWindow(QMainWindow):
|
||||
|
||||
filename_start = getattr(Filename, f"{_type.upper()}_SYNC")
|
||||
|
||||
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:
|
||||
filename_start = filename_start.replace("Sync", "RoughCut")
|
||||
result = PublicFunc.examine_file(file_path, filename_start, endswith)
|
||||
if result.status:
|
||||
self.params["Path"][f"Input_{_type}"] = result.data["path"]
|
||||
|
||||
Reference in New Issue
Block a user