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.Technologyobject (or sub-classes) have three unit settings.unit_powerunit_timeunit_energy
Only the
unit_powerandunit_timeattributes can be specified with this function to prevent inconsistent units. E.g. Setting theunit_energytoMWheven though time is in minutes and power is inkW.Note
The objects in the original list are copied by default. This may result in slower run time.
- Parameters:
tech_list (list of
osier.Technologyobjects) – 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.Technologyobjects