dpinney / omf

The Open Modeling Framework for smart grid cost-benefit analysis.
https://omf.coop
GNU General Public License v2.0
112 stars 60 forks source link

singleGridlab energy chart problems #189

Closed dpinney closed 10 years ago

dpinney commented 10 years ago

Specifically: (1) The chart should show numbers based on the current model run; currently it just shows a hard-coded value. 2) The chart needs to be smaller and a bar (horizontal) not column chart.

cshjin commented 10 years ago

I encountered a problem: Some of the gridlabd simulation do not have DG in allOutputData.json file, except for the Public Gridlabd. Is it the usual case or not? Two options:

  1. fix the code in gridlabSingle.py and if consumption do not have DG then set default 0 into it.
  2. handle it in gridlabSingle.html, detect whether DG data exist or not?
dpinney commented 10 years ago

DG is not in all Gridlabd models. If it's missing, set DG to 0 in the .py. Good catch.

cshjin commented 10 years ago

Check commit 95693abc30ae21d18002810e610d479118b91ffd. Made changes of display charts in gridlabSingle. 5-29-2014 6-46-49 pm

dpinney commented 10 years ago

This is awesome!

cshjin commented 10 years ago

Another optional display of energy chart could be like this: 5-30-2014 11-07-19 am

Inner circle is the powerflow of substation and DG, outer circle is the energy of losses and loads. Each of them take a certain percentage of "in" or "out" energy.

dpinney commented 10 years ago

Beautiful. However, the report interface is 1000 pixels wide. So the pie chart would leave a lot of blank space beside it, which is bad.

dpinney commented 10 years ago

For the horizontal bar chart, can we make it less tall?

cshjin commented 10 years ago

Is this enough? 5-30-2014 12-00-25 pm

dpinney commented 10 years ago

Perfect!

cshjin commented 10 years ago

Closed by commit 6394c3a4a5451592c56b5e027062cd2d570380b5