osier.utils.synchronize_units#

osier.utils.synchronize_units(tech_list, unit_power, unit_time)[source]#

This function ensures that all objects in the technology list have units consistent with the model’s units. An osier.Technology object (or sub-classes) have three unit settings.

  • unit_power

  • unit_time

  • unit_energy

Only the unit_power and unit_time attributes can be specified with this function to prevent inconsistent units. E.g. Setting the unit_energy to MWh even though time is in minutes and power is in kW.

Note

The objects in the original list are copied by default. This may result in slower run time.

Parameters:

tech_list (list of osier.Technology objects) – The list of technology objects whose units need to be synchronized.

Returns:

synced_list – The list of technology objects that have synchronized units.

Return type:

list of osier.Technology objects