diff --git a/t4_devkit/dataclass/pointcloud.py b/t4_devkit/dataclass/pointcloud.py index d8975944..7515175a 100644 --- a/t4_devkit/dataclass/pointcloud.py +++ b/t4_devkit/dataclass/pointcloud.py @@ -153,6 +153,10 @@ def _validate_metainfo(self, attribute, value) -> None: f"idx_begin={idx_begin}, length={length}, but num_points={num_points}" ) + # Skip sources with zero length as they don't represent any points and can cause false positives in coverage validation. + if length == 0: + continue + intervals.append((idx_begin, idx_end, source_token)) # Sort intervals by start index