htmd.units module#
- htmd.units.convert(fromunit, tounit, value, fstep=1, timestep=4)#
Convert values between units.
- Parameters:
- Returns:
conv – The converted value. When converting to
frameorstepunits, the result is rounded to the nearest integer.- Return type:
scalarornumpy.ndarray
Examples
>>> convert("ns", "frame", 100, fstep=0.1) 1000