feat(新功能):

fix(修复bug): RunTime判定修改为0.05秒内触发打印
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhouchengrong
2025-01-10 15:04:13 +08:00
parent 9e1a1996c7
commit f6b2e283f9
4 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ class Segmentation(object):
seg_result = np.load(file_path) seg_result = np.load(file_path)
return True, seg_result return True, seg_result
except FileNotFoundError: except FileNotFoundError:
logger.warning("文件不存在") # logger.warning("文件不存在")
return False, None return False, None
except Exception as e: except Exception as e:
logger.error(f"加载失败: {e}") logger.error(f"加载失败: {e}")

View File

@@ -63,7 +63,7 @@ class Segmentation:
seg_result = np.load(file_path) seg_result = np.load(file_path)
return True, seg_result return True, seg_result
except FileNotFoundError: except FileNotFoundError:
logger.warning("文件不存在") # logger.warning("文件不存在")
return False, None return False, None
except Exception as e: except Exception as e:
logger.error(f"加载失败: {e}") logger.error(f"加载失败: {e}")

View File

@@ -78,7 +78,7 @@ class Segmentation:
seg_result = np.load(file_path) seg_result = np.load(file_path)
return True, seg_result return True, seg_result
except FileNotFoundError: except FileNotFoundError:
logger.warning("文件不存在") # logger.warning("文件不存在")
return False, None return False, None
except Exception as e: except Exception as e:
logger.error(f"加载失败: {e}") logger.error(f"加载失败: {e}")

View File

@@ -266,7 +266,7 @@ class DesignPreprocessing:
seg_result = np.load(file_path) seg_result = np.load(file_path)
return True, seg_result return True, seg_result
except FileNotFoundError: except FileNotFoundError:
logging.info("文件不存在") # logging.info("文件不存在")
return False, None return False, None
except Exception as e: except Exception as e:
logging.warning(f"加载失败: {e}") logging.warning(f"加载失败: {e}")