Skip to content
Snippets Groups Projects
Commit 0442366d authored by Jingyu Gong's avatar Jingyu Gong
Browse files

Debug: t_horizon was always treated as hour, now linked with t_step

parent d9236917
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ def process_input_profiles(input_profile_dict, t_start, t_horizon, t_step): ...@@ -42,7 +42,7 @@ def process_input_profiles(input_profile_dict, t_start, t_horizon, t_step):
input_profiles[input_profile_name] = (input_profile_config[0], profile) input_profiles[input_profile_name] = (input_profile_config[0], profile)
for input_profile_name, (input_profile_type, input_profile) in input_profiles.items(): for input_profile_name, (input_profile_type, input_profile) in input_profiles.items():
input_profile = input_profile[t_start:t_start + pd.Timedelta(hours = t_horizon - 1)] input_profile = input_profile[t_start:t_start + pd.Timedelta(hours=t_horizon * t_step - t_step)]
if input_profile_type == 'irradiance': if input_profile_type == 'irradiance':
lambda_1 = 14.122 lambda_1 = 14.122
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment