Skip to content

Commit

Permalink
Merge pull request #13 from kingsleynweye/develop
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
kingsleynweye committed Jan 25, 2023
2 parents 3762439 + d5aa540 commit 2e68f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion energy_flexibility_kpis/kpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def flexibility_factor(generic_electricity_consumption_profile: List[float], hig
(df['timestamp'] >= high_price_start_timestamp) & (df['timestamp'] <= high_price_end_timestamp)
]['generic_electricity_consumption'].sum()
low_price_electricity_consumption = df[
(df['timestamp'] < high_price_start_timestamp) & (df['timestamp'] > high_price_end_timestamp)
(df['timestamp'] < high_price_start_timestamp) | (df['timestamp'] > high_price_end_timestamp)
]['generic_electricity_consumption'].sum()
flexibility_factor = (low_price_electricity_consumption - high_price_electricity_consumption)/\
(low_price_electricity_consumption + high_price_electricity_consumption)
Expand Down

0 comments on commit 2e68f50

Please sign in to comment.