Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
kenko911 committed Sep 28, 2024
1 parent 3113f77 commit a949740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion m3gnet/models/_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

from ._base import Potential
from ._m3gnet import M3GNet
from ._m3gnet.layers import AtomRef

OPTIMIZERS = {
"FIRE": FIRE,
Expand Down Expand Up @@ -96,7 +97,7 @@ def calculate(
graph = self.potential.graph_converter(atoms, self.state_attr)
graph_list = graph.as_tf().as_list()
results = self.potential.get_efs_tensor(graph_list, include_stresses=self.compute_stress)

offset = None
if self.element_refs is not None:
offset = self.element_refs(graph_list)

Expand Down

0 comments on commit a949740

Please sign in to comment.