在导入数据时,将校验数据的扩展名是否合法

This commit is contained in:
Yorusora
2025-05-22 17:12:58 +08:00
parent 94b883032d
commit a321dc5bd4
12 changed files with 32 additions and 26 deletions

View File

@ -233,7 +233,7 @@ class Data:
def open_file(self):
path = str(Path(self.root_path) / ConfigParams.PUBLIC_PATH_PSG_TEXT / Path(str(self.sampID)))
for value in Config["ChannelInput"].values():
result = PublicFunc.examine_file(path, value)
result = PublicFunc.examine_file(path, value, ConfigParams.ENDSWITH_TXT)
if not result.status:
return result