You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after openff-units package was introduced, parameter_value is already a pint Quantity, but since it is not a simtk_unit.Quantity, it is multiplied by a dimensionelss number, then in the following step
there is a unit bug when forcebalance is used with openff-evaluator: openforcefield/openff-evaluator#482
The bug happens at the unit parsing and conversion part in evaluator_io.py:
forcebalance/src/evaluator_io.py
Line 353 in da8346c
If we print the type and value before and after that line:
we get
after openff-units package was introduced,
parameter_value
is already a pint Quantity, but since it is not a simtk_unit.Quantity, it is multiplied by a dimensionelss number, then in the following stepforcebalance/src/evaluator_io.py
Line 356 in da8346c
it is converted to a dimensionless quantity.
How to fix this?
Perhaps the easiest change is to modify the last line of L356 to
return parameter_value, is_cosmetic
, I got the following error:The text was updated successfully, but these errors were encountered: