Skip to content

Commit

Permalink
fix a bug in AgatCalculator
Browse files Browse the repository at this point in the history
This bug will not affect model predictions and relaxed structures.
  • Loading branch information
jzhang-github committed Dec 19, 2023
1 parent 985c13a commit 3377e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .spyproject/config/workspace.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ save_data_on_exit = True
save_history = True
save_non_project_files = False
project_type = 'empty-project-type'
recent_files = ['agat\\test\\test.py', 'agat\\test\\test_graph_build_method.py']
recent_files = ['agat\\test\\test.py']

[main]
version = 0.2.0
Expand Down
3 changes: 3 additions & 0 deletions agat/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def calculate(self, atoms=None, properties=None, system_changes=['positions', 'n
if properties is None:
properties = self.implemented_properties

if atoms is not None:
self.atoms = atoms.copy()

# read graph
graph, info = self.cg.get_graph(atoms)
graph = graph.to(self.device)
Expand Down

0 comments on commit 3377e34

Please sign in to comment.