Add edge-count consistency checks in test_graph_creation - #396
Closed
Shivampal157 wants to merge 1 commit into
Closed
Add edge-count consistency checks in test_graph_creation#396Shivampal157 wants to merge 1 commit into
Shivampal157 wants to merge 1 commit into
Conversation
Check that each *_edge_index.pt has same number of edges as rows in corresponding *_features.pt for g2m, m2g, m2m and mesh up/down. Closes mllam#380 Made-with: Cursor
Author
Contributor
|
@Shivampal157 the code LGTM, just revert back to the original PR template |
Author
|
@joeloskarsson @Sharkyii Done, reverted to the original PR template. Thanks. |
This was referenced Mar 15, 2026
Collaborator
Collaborator
|
Closed in favor of #301 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Add edge-count consistency checks in
test_graph_creation: the test now asserts that for each graph (g2m, m2g, m2m, and for hierarchical graphs mesh_up / mesh_down), the number of edges in each*_edge_index.ptfile matches the number of rows in the corresponding*_features.ptfile. This addresses the outstanding TODO in the test file.No new dependencies. Motivation: ensure generated graph files are internally consistent before they are used downstream.
Issue Link
Closes #380
Type of change
Checklist before requesting a review
pullwith--rebaseoption if possible).Checklist for reviewers
Each PR comes with its own improvements and flaws. The reviewer should check the following:
Author checklist after completed review
reflecting type of change (add section where missing):
Checklist for assignee