Skip to content

Commit

Permalink
Changed atom_state for atoms_state
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Feb 16, 2024
1 parent a95be16 commit cd7af35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def normalize(self, archive, logger):
self.u_effective = self.resolve_u_effective(logger)


class AtomState(ArchiveSection):
class AtomsState(ArchiveSection):
"""
A base section to define each atom state information.
"""
Expand Down
6 changes: 3 additions & 3 deletions simulationdataschema/model_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
from nomad.datamodel.metainfo.basesections import Entity, System
from nomad.datamodel.metainfo.annotations import ELNAnnotation

from .atom_state import AtomState
from .atoms_state import AtomsState
from .utils import get_sibling_section


Expand Down Expand Up @@ -296,7 +296,7 @@ class AtomicCell(Cell):
A base section used to specify the atomic cell information of a system.
"""

atoms_state = SubSection(sub_section=AtomState.m_def, repeats=True)
atoms_state = SubSection(sub_section=AtomsState.m_def, repeats=True)

equivalent_atoms = Quantity(
type=np.int32,
Expand Down Expand Up @@ -513,7 +513,7 @@ def resolve_analyzed_atomic_cell(
atomic_cell = AtomicCell(type=cell_type)
atomic_cell.lattice_vectors = cell * ureg.angstrom
for label, atomic_number in zip(labels, atomic_numbers):
atom_state = AtomState(chemical_symbol=label, atomic_number=atomic_number)
atom_state = AtomsState(chemical_symbol=label, atomic_number=atomic_number)
atomic_cell.m_add_sub_section(AtomicCell.atoms_state, atom_state)
atomic_cell.positions = (
positions * ureg.angstrom
Expand Down

0 comments on commit cd7af35

Please sign in to comment.