Skip to content

Commit

Permalink
Label
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Apr 12, 2024
1 parent e09eec8 commit 02e110d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
11 changes: 6 additions & 5 deletions runschema/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
MEnum,
HDF5Reference,
)
from nomad.metainfo.data_type import m_int32, m_float64
from .method import Method, HoppingMatrix
from .system import System, AtomsGroup

Expand Down Expand Up @@ -161,7 +162,7 @@ class AtomicValues(ArchiveSection):
)

atom_index = Quantity(
type=np.dtype(np.int32),
type=m_int32().no_type_check(),
shape=[],
description="""
Index of the atomic species corresponding to the atomic quantity.
Expand Down Expand Up @@ -617,7 +618,7 @@ class Energy(MSection):
)

highest_occupied = Quantity(
type=np.dtype(np.float64),
type=m_float64(dtype=np.float64).no_type_check(),
unit='joule',
shape=[],
description="""
Expand Down Expand Up @@ -1017,7 +1018,7 @@ class BandEnergies(MSection):
)

occupations = Quantity(
type=np.dtype(np.float64),
type=m_float64(dtype=np.float64).no_shape_check(),
shape=['n_spin_channels', 'n_kpoints', 'n_bands'],
description="""
Values of the occupations of the bands.
Expand Down Expand Up @@ -1412,15 +1413,15 @@ class MultipolesEntry(Atomic):
)

value = Quantity(
type=np.dtype(np.float64),
type=m_float64(dtype=np.float64).no_shape_check(),
shape=['n_atoms', 'n_multipoles'],
description="""
Value of the multipoles projected unto the atoms.
""",
)

total = Quantity(
type=np.dtype(np.float64),
type=m_float64(dtype=np.float64).no_shape_check(),
shape=['n_multipoles'],
description="""
Total value of the multipoles.
Expand Down
10 changes: 6 additions & 4 deletions runschema/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
Reference,
MEnum,
)
from nomad.metainfo.data_type import m_complex128, m_str
from nomad.quantum_states import RussellSaundersState

m_package = Package()
Expand Down Expand Up @@ -88,7 +89,8 @@ class Mesh(MSection):
'Logarithmic',
'Tan',
'Gauss-Legendre',
'Gauss-Laguerre' 'Clenshaw-Curtis',
'Gauss-Laguerre',
'Clenshaw-Curtis',
'Newton-Cotes',
'Gauss-Hermite',
),
Expand Down Expand Up @@ -141,7 +143,7 @@ class Mesh(MSection):
)

points = Quantity(
type=np.complex128,
type=m_complex128(dtype=np.complex128).no_shape_check(),
shape=['*', 'dimensionality'],
description="""
List of all the points in the mesh.
Expand Down Expand Up @@ -1140,7 +1142,7 @@ class OrbitalAPW(MSection):

energy_parameter = Quantity(
type=np.float64,
shape=['*'],
shape=[],
unit='joule',
description="""
Reference energy parameter for the augmented plane wave (APW) basis set.
Expand Down Expand Up @@ -1472,7 +1474,7 @@ class Interaction(MSection):
)

atom_labels = Quantity(
type=np.dtype(str),
type=m_str().no_shape_check(),
shape=['n_interactions', 'n_atoms'],
description="""
Labels of the atoms described by the interaction. Can be a list of lists for interaction groupings.
Expand Down
3 changes: 2 additions & 1 deletion runschema/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
SectionProxy,
Reference,
)
from nomad.metainfo.data_type import m_str
from nomad.units import ureg

m_package = Package()
Expand Down Expand Up @@ -775,7 +776,7 @@ class System(ArchiveSection):
atoms_group = SubSection(sub_section=AtomsGroup.m_def, repeats=True)

chemical_composition = Quantity(
type=str,
type=m_str().no_type_check(),
shape=[],
description="""
The full chemical composition of the system, based on atom species.
Expand Down

0 comments on commit 02e110d

Please sign in to comment.