htmd.units module#

htmd.units.convert(fromunit, tounit, value, fstep=1, timestep=4)#

Converts values between units

Parameters:
  • fromunit (str) – Unit to convert from

  • tounit (str) – Unit to convert to

  • value (scalar) – The value to convert

  • fstep (float) – The sampling frame step of the simulation in nanoseconds

  • timestep (int) – The timestep of the simulation in femtoseconds

Returns:

conv – The converted value

Return type:

scalra