Skip to content

chore: fix overlap check in pointcloud metainfo validator#268

Merged
SamratThapa120 merged 2 commits into
mainfrom
chore/pointcloud/metainfocheck
Feb 25, 2026
Merged

chore: fix overlap check in pointcloud metainfo validator#268
SamratThapa120 merged 2 commits into
mainfrom
chore/pointcloud/metainfocheck

Conversation

@SamratThapa120
Copy link
Copy Markdown
Contributor

This pull request makes a targeted improvement to the _validate_metainfo method in pointcloud.py to handle a specific edge case during point cloud metadata validation.

Validation logic improvement:

  • Updated _validate_metainfo in t4_devkit/dataclass/pointcloud.py to skip sources with zero length when building intervals, preventing failures in the non-overlapping check for sources that don't represent any points.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 24, 2026

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
4217 3491 83% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/dataclass/pointcloud.py 40% 🔴
TOTAL 40% 🔴

updated for commit: 7309f30 by action🐍

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug in the pointcloud metadata validation logic where sources with zero length incorrectly triggered validation errors. The fix ensures that sources representing zero points are excluded from the interval-based coverage validation while still validating their bounds.

Changes:

  • Modified _validate_metainfo method to skip sources with length == 0 when building intervals for coverage validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread t4_devkit/dataclass/pointcloud.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@ktro2828 ktro2828 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, LGTM.

@SamratThapa120 SamratThapa120 merged commit faed1e6 into main Feb 25, 2026
4 of 5 checks passed
@SamratThapa120 SamratThapa120 deleted the chore/pointcloud/metainfocheck branch February 25, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants