34by151 / python-electric Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/python-electric
Automatically exported from code.google.com/p/python-electric
What steps will reproduce the problem?
1. Electricity View Day when there is not enough data
2.
3.
What is the expected output? What do you see instead?
Error Screen
charts.py in CreateAverageChart, line 962
ZeroDivisionError at /electric/bar/2010/03/22/
Please use labels and text to provide additional information.
code...
955. G.axes('xyr')
956. G.axes.range(1, cost*bottom,cost*top,cost*2)
957. G.axes.range(2, bottom,top,4)
958.
959. G.axes.label(0, '|'.join(x_label))
960.
961. dayofweek = int(d_start.strftime('%w'))
962. x_stepsize = 99.9/(count-1)*7 ...
963. y_stepsize = y_max/scale/2
964. x_offset = x_stepsize - dayofweek/7.0*x_stepsize
965.
966. G.grid(x_stepsize, y_stepsize, 1, 0, x_offset, 0)
967.
968. G.marker ('@telectricity in kW h', '666666', 0, '1:1', 10)
Original issue reported on code.google.com by [email protected]
on 18 Oct 2010 at 12:57
python_electric/apps/electric/charts.py has a hardcoded override of the HOME
environment variable for matplotlib. It should probably append charts to the
media path defined in the settings
Original issue reported on code.google.com by [email protected]
on 3 Mar 2011 at 8:21
Easy one, the pyton_electric/tools directory needs an __init__.py committed. An
empty __init__.py worked fine for me.
Original issue reported on code.google.com by [email protected]
on 3 Mar 2011 at 8:18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.