Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Fix an HGT Encoder Corner Case: 0 edge in a block #1196

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

zhjwy9343
Copy link
Contributor

Issue #, if available:

Description of changes:
This PR fixes an HGT Encoder corner case, where the edge type with feature has 0 edge in a block. In such case the input of edge feature become empty dict, and will trigger an assertion error in the previous implementation. This PR handles this corner case.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zhjwy9343 zhjwy9343 added bug Something isn't working ready able to trigger the CI 0.4.1 labels Feb 28, 2025
@zhjwy9343 zhjwy9343 requested a review from RonaldBXu February 28, 2025 05:36
@zhjwy9343 zhjwy9343 added enhancement New feature or request ready able to trigger the CI and removed ready able to trigger the CI labels Feb 28, 2025
Copy link
Contributor

@classicsong classicsong left a comment

Choose a reason for hiding this comment

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

You need to add unit test for this PR.

@zhjwy9343
Copy link
Contributor Author

You need to add unit test for this PR.

yes, will add new unit test for this corner case.

Copy link
Contributor

@RonaldBXu RonaldBXu left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.4.1 bug Something isn't working enhancement New feature or request ready able to trigger the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants