Skip to content

Commit

Permalink
Fix a DataFrame.merge in bdew.HeatBuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Jan 23, 2021
1 parent da09e02 commit d74d130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demandlib/bdew.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def get_weekday_parameters(self, filename='shlp_weekday_factors.csv'):

return np.array(list(map(float, pd.DataFrame.merge(
tmp_df, self.df, left_on='weekdays', right_on='weekday',
how='inner', left_index=True).sort_index()['wochentagsfaktor'])))
how='inner').set_index(self.df.index)['wochentagsfaktor'])))

def get_bdew_profile(self):
""" Calculation of the hourly heat demand using the bdew-equations
Expand Down

0 comments on commit d74d130

Please sign in to comment.