Skip to content

Commit

Permalink
added missing units
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Sep 13, 2024
1 parent 27c5a84 commit f535116
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
authors = [{ name = "The NOMAD Authors" }]
license = { text = "Apache-2.0" }
dependencies = [
"nomad-lab>=1.3.6.dev1",
""nomad-lab@git+https://github.com/nomad-coe/nomad.git@develop",
"nomad-schema-plugin-run@git+https://github.com/nomad-coe/nomad-schema-plugin-run.git@develop",
]

Expand Down
20 changes: 12 additions & 8 deletions simulationworkflowschema/molecular_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,18 +1095,19 @@ class FreeEnergyCalculations(TrajectoryProperty):
""",
)

value_unit = Quantity(
type=str,
shape=[],
description="""
Unit of the property, using UnitRegistry() notation.
In this case, the unit corresponds to all `value` properties stored within this section.
""",
)
# value_unit = Quantity(
# type=str,
# shape=[],
# description="""
# Unit of the property, using UnitRegistry() notation.
# In this case, the unit corresponds to all `value` properties stored within this section.
# """,
# )

value_total_energy_magnitude = Quantity(
type=HDF5Dataset,
shape=[],
unit='joule',
description="""
Value of the total energy for the present lambda state. The expected dimensions are ["n_frames"].
This quantity is a reference to the data (file+path), which is stored in an HDF5 file for efficiency.
Expand All @@ -1116,6 +1117,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
value_PV_energy_magnitude = Quantity(
type=HDF5Dataset,
shape=[],
unit='joule',
description="""
Value of the pressure-volume energy (i.e., P*V) for the present lambda state. The expected dimensions are ["n_frames"].
This quantity is a reference to the data (file+path), which is stored in an HDF5 file for efficiency.
Expand All @@ -1125,6 +1127,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
value_total_energy_differences_magnitude = Quantity(
type=HDF5Dataset,
shape=[],
unit='joule',
description="""
Values correspond to the difference in total energy between each specified lambda state
and the reference state, which corresponds to the value of lambda of the current simulation.
Expand All @@ -1136,6 +1139,7 @@ class FreeEnergyCalculations(TrajectoryProperty):
value_total_energy_derivative_magnitude = Quantity(
type=HDF5Dataset,
shape=[],
unit='joule', # TODO check this unit
description="""
Value of the derivative of the total energy with respect to lambda, evaluated for the current
lambda state. The expected dimensions are ["n_frames"].
Expand Down

0 comments on commit f535116

Please sign in to comment.