"platforms/common/vscode:/vscode.git/clone" did not exist on "33c694d4fdf2e748c93b7393a8c9490f21cc16f8"
Commit ad50ced2 authored by David Dotson's avatar David Dotson
Browse files

Switched hartree ScaledUnit basis to joule

From @peastman:

> Test cases are failing. I believe it's because the parent for a ScaledUnit needs to be a Unit, not another ScaledUnit. So in the line
>
> ```
>  hartree_base_unit = ScaledUnit(4.3597447222071e-18, joule_base_unit, "hartree", "Ha")
> ```
>
> replace joule_base_unit with joule.
parent ce85b7f7
......@@ -237,7 +237,7 @@ joules = joule = Unit({joule_base_unit: 1.0})
define_prefixed_units(joule_base_unit, module = sys.modules[__name__])
erg_base_unit = ScaledUnit(1.0, dyne * centimeter, "erg", "erg")
erg = ergs = Unit({erg_base_unit: 1.0})
hartree_base_unit = ScaledUnit(4.3597447222071e-18, joule_base_unit, "hartree", "Ha")
hartree_base_unit = ScaledUnit(4.3597447222071e-18, joule, "hartree", "Ha")
hartree = hartrees = Unit({hartree_base_unit: 1.0})
# In molecular simulations, "kilojoules" are in microscopic units
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment