energy_demand.basic package

Submodules

energy_demand.basic.basic_functions module

energy_demand.basic.conversions module

Conversion of units

energy_demand.basic.conversions.convert_fueltypes_sectors_ktoe_gwh(fuel_dict)[source]

Iterate fueltypes and convert ktoe to gwh

Parameters

fuel_dict (array) – Fuel per fueltype

Returns

fuel_converted – Array with converted fuel per fueltype

Return type

dict

energy_demand.basic.conversions.gwh_to_ktoe(gwh)[source]

Conversion of gwh to ktoe

Parameters

ktoe (float) – Energy demand in ktoe

Returns

data_gwh – Energy demand in GWh

Return type

float

Notes

https://www.iea.org/statistics/resources/unitconverter/

energy_demand.basic.conversions.gwh_to_kwh(gwh)[source]

“Conversion of MW to GWh

Parameters

kwh (float) – Kilowatthours

Returns

gwh – Gigawatthours

Return type

float

energy_demand.basic.conversions.gwh_to_twh(gwh)[source]

Convert GWh to TWh

Parameters

gwh (float) – GWh

Returns

twh – TWh

Return type

str

energy_demand.basic.conversions.ktoe_to_gwh(ktoe)[source]

Conversion of ktoe to gwh. As ECUK input ktoe per year are provided, which are converted into GWh per year.

Parameters

ktoe (float) – Energy demand in ktoe

Returns

gwh – Energy demand in GWh

Return type

float

Notes

https://www.iea.org/statistics/resources/unitconverter/

energy_demand.basic.conversions.ktoe_to_twh(ktoe)[source]

Conversion of ktoe to TWh

Parameters

ktoe (float) – Energy demand in ktoe

Returns

data_gwh – Energy demand in TWh

Return type

float

Notes

https://www.iea.org/statistics/resources/unitconverter/

energy_demand.basic.conversions.kwh_to_gwh(kwh)[source]

“Conversion of MW to GWh

Parameters

kwh (float) – Kilowatthours

Returns

gwh – Gigawatthours

Return type

float

energy_demand.basic.conversions.mw_to_gwh(megawatt, number_of_hours)[source]

“Conversion of MW to GWh

Parameters
  • kwh (float) – Kilowatthours

  • number_of_hours (float) – Number of hours

Returns

gwh – Gigawatthours

Return type

float

energy_demand.basic.date_prop module

energy_demand.basic.demand_supply_interaction module

energy_demand.basic.logger_setup module

Setting up the logger

energy_demand.basic.logger_setup.set_up_logger(path_log_file)[source]

Create logger :param path_log_file: Path to logger file :type path_log_file: str :param Info: :param —–: :param The logging level can be changed depending on mode:

Note

logger.debug(‘debug message’) logger.warn(‘warn message’) logger.error(‘error message’) logger.critical(‘critical message’)

energy_demand.basic.lookup_tables module

Lookup tables

energy_demand.basic.lookup_tables.basic_lookups()[source]

Definition of basic lookup tables

Returns

lookups – Lookup information

Return type

dict

energy_demand.basic.lookup_tables.economic_sectors_regional_MISTRAL()[source]

Reginal sector ID with description from economic_sectors_regiona.csv of MISTRAl population/economic simuations

match_int: Integer of GVA input

energy_demand.basic.lookup_tables.industrydemand_name_sic2007()[source]

Lookup table of industry energy demands and SIC letter and number

Returns

  • lookup (dict) – name_used_in_model: {‘SIC_2007_nr’, ‘SIC_2007_letter}

  • Info

  • —-

  • https (//unstats.un.org/unsd/cr/registry/regcst.asp?Cl=27)

energy_demand.basic.lookup_tables.lad_msoa_mapping()[source]

Map between lad and msoa

{LAD: [MOAS]}

energy_demand.basic.testing_functions module