Skip to content

Commit

Permalink
added m_def and switched kind to type
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Feb 29, 2024
1 parent 92c1dea commit 73a4036
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions simulationworkflowschema/molecular_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class Lambdas(ArchiveSection):

m_def = Section(validate=False)

kind = Quantity(
type = Quantity(
type=MEnum(
"output", "coulomb", "vdw", "bonded", "restraint", "mass", "temperature"
),
Expand All @@ -409,7 +409,7 @@ class Lambdas(ArchiveSection):
Allowed values are:
| kind | Description |
| type | Description |
| ---------------------- | ----------------------------------------- |
Expand Down Expand Up @@ -1277,25 +1277,27 @@ class MolecularDynamicsResults(ThermodynamicsResults):
)

radial_distribution_functions = SubSection(
sub_section=RadialDistributionFunction, repeats=True
sub_section=RadialDistributionFunction.m_def, repeats=True
)

ensemble_properties = SubSection(sub_section=EnsembleProperty, repeats=True)
ensemble_properties = SubSection(sub_section=EnsembleProperty.m_def, repeats=True)

correlation_functions = SubSection(sub_section=CorrelationFunction, repeats=True)
correlation_functions = SubSection(
sub_section=CorrelationFunction.m_def, repeats=True
)

radial_distribution_functions = SubSection(
sub_section=RadialDistributionFunction, repeats=True
sub_section=RadialDistributionFunction.m_def, repeats=True
)

radius_of_gyration = SubSection(sub_section=RadiusOfGyration, repeats=True)

mean_squared_displacements = SubSection(
sub_section=MeanSquaredDisplacement, repeats=True
sub_section=MeanSquaredDisplacement.m_def, repeats=True
)

free_energy_calculations = SubSection(
sub_section=FreeEnergyCalculations, repeats=True
sub_section=FreeEnergyCalculations.m_def, repeats=True
)

def normalize(self, archive, logger):
Expand Down

0 comments on commit 73a4036

Please sign in to comment.