Skip to content
Snippets Groups Projects
Commit 18a1cbc8 authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Fixed electric vs electrical

parent bd54324c
Branches
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ def generate_profile(name, profile_type, parameters, input_profiles, t_start, dy ...@@ -159,7 +159,7 @@ def generate_profile(name, profile_type, parameters, input_profiles, t_start, dy
t_last = t_start + pd.Timedelta(hours = sum(dynamic.step_size(index) for index in list(dynamic.time_steps())[:-1])) t_last = t_start + pd.Timedelta(hours = sum(dynamic.step_size(index) for index in list(dynamic.time_steps())[:-1]))
years = range(t_start.year, t_last.year + 1) years = range(t_start.year, t_last.year + 1)
if profile_type == 'elec_demand': if profile_type == 'electricity_demand':
profiles = [] profiles = []
for year in years: for year in years:
year_profile = ElectricalDemand(year).get_profile(parameters['yearly_demand'], 'h0', True) # True: with smoothing function for household profiles, False: no smoothing function for household profiles year_profile = ElectricalDemand(year).get_profile(parameters['yearly_demand'], 'h0', True) # True: with smoothing function for household profiles, False: no smoothing function for household profiles
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment