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

plotTable function in cvrstatic.py needs to fixed #199

Closed srivats0603 closed 10 years ago

srivats0603 commented 10 years ago

The table is made in a way such that: (i) the title of the lists is extracted from the first row of the matrix (ii) the number of columns of the table are exactly the number of elements in the second row - 1
(iii) the side column is the first element of every row of the matrix

example input: matrix2 = [ ["name", "place", "animal", "thing", 16], ["s", "srivats", "san diego", "swine", "sugar"], ["b", "basu", "boston", "beer", "bolt"]]

example output: image

Possible fix: pad the first column of each row (2nd row onwards) of the input data matrix with some value

dpinney commented 10 years ago

Fixed 8e4674c5ac347ded7b80c8c14e5fcc1681fc556d