算法更新: delivery v1.2.1、平整度v1.5、测距v2.2、整车配准v1.3 适配器: vehicle-registration 新增、各算法 manifest 和 adapter 更新 后端: taskCadFiles/source 字段迁移、derivedPointClouds 注册、取消任务联动 前端: ElapsedTime 时长显示、两步算法流程、canRun 逻辑修复 文档: 新增5份算法性能分析报告
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
"""Public exception hierarchy for underframe_deflection.
|
|
|
|
Integrators should catch `DeflectionError` for any algorithm failure that
|
|
should be surfaced to the user. Subclasses indicate what specifically went
|
|
wrong so callers can render targeted error messages.
|
|
|
|
Non-fatal data-quality issues are not raised as exceptions; they are
|
|
reported via `DeflectionResult.quality_flags`.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
class DeflectionError(Exception):
|
|
"""Base class for all errors raised by the deflection pipeline."""
|
|
|
|
|
|
class InvalidPointCloudError(DeflectionError):
|
|
"""Raised when the input point cloud is malformed or unreadable."""
|
|
|
|
|
|
class InsufficientPointsError(DeflectionError):
|
|
"""Raised when the input has too few points to run the pipeline."""
|
|
|
|
|
|
class FrameInferenceError(DeflectionError):
|
|
"""Raised when the vehicle reference frame cannot be determined."""
|
|
|
|
|
|
class UnsupportedFormatError(InvalidPointCloudError):
|
|
"""Raised when the input file extension is not supported."""
|
|
|
|
|
|
__all__ = [
|
|
"DeflectionError",
|
|
"InvalidPointCloudError",
|
|
"InsufficientPointsError",
|
|
"FrameInferenceError",
|
|
"UnsupportedFormatError",
|
|
]
|