Skip to content

Commit

Permalink
Merge pull request #17 from nomad-coe/update-hdf5
Browse files Browse the repository at this point in the history
Update hdf5 datatype
  • Loading branch information
ladinesa committed Apr 19, 2024
2 parents 15b04db + 4a974e7 commit fd32d79
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions simulationworkflowschema/molecular_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
MEnum,
Reference,
MSection,
HDF5Reference,
)
from nomad.datamodel.hdf5 import HDF5Dataset
from nomad.datamodel.metainfo.workflow import Link
from runschema.system import System, AtomsGroup
from runschema.calculation import (
Expand Down Expand Up @@ -401,7 +401,7 @@ class Lambdas(ArchiveSection):

type = Quantity(
type=MEnum(
"output", "coulomb", "vdw", "bonded", "restraint", "mass", "temperature"
'output', 'coulomb', 'vdw', 'bonded', 'restraint', 'mass', 'temperature'
),
shape=[],
description="""
Expand Down Expand Up @@ -451,7 +451,7 @@ class FreeEnergyCalculationParameters(ArchiveSection):
m_def = Section(validate=False)

type = Quantity(
type=MEnum("alchemical", "umbrella_sampling"),
type=MEnum('alchemical', 'umbrella_sampling'),
shape=[],
description="""
Specifies the type of workflow. Allowed values are:
Expand Down Expand Up @@ -1037,7 +1037,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
)

value_total_energy_magnitude = Quantity(
type=HDF5Reference,
type=HDF5Dataset,
shape=[],
description="""
Value of the total energy for the present lambda state. The expected dimensions are ["n_frames"].
Expand All @@ -1046,7 +1046,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
)

value_PV_energy_magnitude = Quantity(
type=HDF5Reference,
type=HDF5Dataset,
shape=[],
description="""
Value of the pressure-volume energy (i.e., P*V) for the present lambda state. The expected dimensions are ["n_frames"].
Expand All @@ -1055,7 +1055,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
)

value_total_energy_differences_magnitude = Quantity(
type=HDF5Reference,
type=HDF5Dataset,
shape=[],
description="""
Values correspond to the difference in total energy between each specified lambda state
Expand All @@ -1066,7 +1066,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
)

value_total_energy_derivative_magnitude = Quantity(
type=HDF5Reference,
type=HDF5Dataset,
shape=[],
description="""
Value of the derivative of the total energy with respect to lambda, evaluated for the current
Expand Down

0 comments on commit fd32d79

Please sign in to comment.