Main.Accert.convert_unit_scale#

Accert.convert_unit_scale(current_unit, to_unit)[source]#

Converts the current unit to a new unit in a scale pattern. (I.e. from kiloWatts to megaWatts or gigaWatts)

Parameters:
  • current_unit (str) – current unit

  • to_unit (str) – unit to be converted to

Returns:

scale

Return type:

float