Skip to content

Commit

Permalink
Fix - Small fix on wrong DF variable name, prepared new fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidusb-geek committed Jun 6, 2022
1 parent 43b98b3 commit b543164
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.15] - 2022-06-06
### Fix
- Fixed small bug with wrong DF variable name in web server.

## [0.3.14] - 2022-06-05
### Improvement
- Added one more table to the weu showing the cost totals.
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'David HERNANDEZ'

# The full version, including alpha/beta/rc tags
release = '0.3.14'
release = '0.3.15'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setup(
name='emhass', # Required
version='0.3.14', # Required
version='0.3.15', # Required
description='An Energy Management System for Home Assistant', # Optional
long_description=long_description, # Optional
long_description_content_type='text/markdown', # Optional (see note above)
Expand Down
4 changes: 2 additions & 2 deletions src/emhass/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def get_injection_dict(df, plot_size = 1366):
image_path_2 = fig_2.to_html(full_html=False, default_width='75%')
# The tables
table1 = df.reset_index().to_html(classes='mystyle', index=False)
cost_cols = [i for i in opt_res.columns if 'cost_' in i]
table2 = df[cost_cols].reset_index().sum().to_frame(name='Cost Totals').to_html(classes='mystyle', index=False)
cost_cols = [i for i in df.columns if 'cost_' in i]
table2 = df[cost_cols].reset_index().sum().to_frame(name='Cost Totals').reset_index().to_html(classes='mystyle', index=False)
# The dict of plots
injection_dict = {}
injection_dict['title'] = '<h2>EMHASS optimization results</h2>'
Expand Down

0 comments on commit b543164

Please sign in to comment.