-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6ca774
commit 0426fe8
Showing
21 changed files
with
2,155 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ graphviz = "*" | |
sphinx = "*" | ||
pytest = "*" | ||
sphinx-rtd-theme = "*" | ||
black = "*" | ||
|
||
[requires] | ||
python_version = "3.10" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
# interaction_energy.py | ||
|
||
|
||
def main(atoms_list, d=1): | ||
"""Combines atoms with a distance d | ||
Args: | ||
atoms_list (list): list of atoms, as given by runner | ||
Returns: | ||
atoms object: combined atoms with calculated energies""" | ||
|
||
atoms0 = atoms_list[1] | ||
|
||
atoms0.positions[:, 2] += d + 1 | ||
|
||
atoms0 += atoms_list[2] | ||
|
||
# making sure new energies are used in the system with updated atoms | ||
atoms0.get_potential_energy() | ||
|
||
# adding key_value_pairs for column search in database | ||
# these are updated to the old key_value_pairs already in database | ||
atoms0.info['key_value_pairs'] = {'d': d} | ||
atoms0.info["key_value_pairs"] = {"d": d} | ||
|
||
return atoms0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# min_energy.py | ||
|
||
|
||
def main(atoms_list): | ||
"""Returns atoms with the lowest energy | ||
Args: | ||
atoms_list (list): list of atoms, as given by runner | ||
Returns: | ||
atoms object: atoms with lowest calculated energies""" | ||
import numpy as np | ||
|
||
en_list = [atoms.get_potential_energy() for atoms in atoms_list[1:]] | ||
|
||
indx = np.argmin(en_list) | ||
|
||
return atoms_list[indx + 1] |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from runner.cli import main | ||
|
||
main() |
Oops, something went wrong.