-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02c2ace
commit 315f159
Showing
4 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ This is the API for the ``utils`` module of ``metatrain``. | |
omegaconf | ||
output_gradient | ||
per_atom | ||
units |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Unit handling | ||
############# | ||
|
||
.. automodule:: metatrain.utils.units | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Units | ||
===== | ||
|
||
``metatrain`` will always work with the units as provided by the user, and all logs will | ||
be in the same units. In other terms, ``metatrain`` does not perform any unit | ||
conversion. The only exception is the logging of energies in ``meV`` if the energies are | ||
declared to be in ``eV``, for consistency with common practice and other codes. | ||
|
||
Although not mandatory, the user is encouraged to specify the units of their datasets | ||
in the input files, so that the logs can be more informative and, more importantly, in | ||
order to make the resulting exported models usable in simulation engines (which instead | ||
require the units to be specified) without unpleasant surprises. |