Skip to content

Commit

Permalink
Ensure we store which atoms are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Oct 25, 2023
1 parent 49dfcff commit 9ee633a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examol/simulate/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __post_init__(self):
self.xyz = write_to_string(atoms, 'xyz')
else:
atoms.calc = None
self.xyz = write_to_string(atoms, 'extxyz')
self.xyz = write_to_string(atoms, 'extxyz', columns=['symbols', 'positions', 'move_mask'])

@property
def atoms(self) -> ase.Atoms:
Expand Down
5 changes: 3 additions & 2 deletions examol/store/recipes/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SurfaceSite:

@dataclass()
class SurfaceRecord:
"""Describe the surface on which molecule are Adsorbed"""
"""Describe the surface on which molecule are adsorbed"""

# Definition of the cell
name: str = ...
Expand All @@ -65,8 +65,9 @@ class AdsorptionEnergy(PropertyRecipe):
Each file contains the relaxed geometry of the slab, and information about how to place adsorbates on it.
"""

# TODO (wardlt): Be able to support >1 surface for different catalysis
# TODO (wardlt): Be able to support >1 surfaces for different catalysis
# TODO (wardlt): Consider how to prioritize the different required calculations across surfaces
# TODO (wardlt): Determine how to select molecule orientation
def __init__(self, surface_name: str, config_name: str):
super().__init__("adsorption_energy", f"{surface_name}-config_name")
self.surface_name = surface_name
Expand Down

0 comments on commit 9ee633a

Please sign in to comment.