-
Notifications
You must be signed in to change notification settings - Fork 258
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
Make generate_graph
from GraphModelMixin
standalone
#836
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! LGTM!
src/fairchem/core/common/utils.py
Outdated
@@ -779,6 +780,114 @@ def radius_graph_pbc( | |||
return edge_index, unit_cell, num_neighbors_image | |||
|
|||
|
|||
def generate_graph_standalone( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just call it generate_graph
? or is there a name clash somewhere that I missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree and fixed!
This PR has been marked as stale because it has been open for 30 days with no activity. |
Changes:
GraphModelMixin.generate_graph
tocommon.utils
, and backwards compatiblegenerate_graph
clear (now if the input arguments are different from model attributes, unexpected behaviors could happen)Enhancements:
generate_graph
for dev (don't need to build a whole model)use_pbc_single