Closed kenko911 closed 2 days ago
The ThreeBodyInteractions
class in _three_body.py
has undergone notable updates to improve how bond updates are managed. Key modifications involve refactoring the initialization method, adjusting parameter types, and refining computations related to node and edge features. These changes aim to enhance the efficiency of handling interactions for bond updates in the class.
File | Change Summary |
---|---|
src/matgl/layers/_three_body.py |
Updated ThreeBodyInteractions class to refine initialization, adjust parameter types, and enhance node/edge feature computations. Updated the forward method to work with new parameter type for three_cutoff . |
sequenceDiagram
participant User
participant ThreeBodyInteractions
participant ExternalModule
User->>+ThreeBodyInteractions: Initialize(update_network_atom, update_network_bond, **kwargs)
loop Process Data
User->>+ThreeBodyInteractions: forward(graph, line_graph, three_basis, three_cutoff, node_feat, edge_feat)
ThreeBodyInteractions->>+ExternalModule: Perform calculations
ExternalModule-->>-ThreeBodyInteractions: Return results
ThreeBodyInteractions->>User: Update node and edge features
end
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Summary
Improve the implementation of three-body interactions in M3GNet
Checklist
ruff
.mypy
.duecredit
@due.dcite
decorators to reference relevant papers by DOI (example)Tip: Install
pre-commit
hooks to auto-check types and linting before every commit: