Making progress on velocipy
I geeked out and graphed the number of patches per day that I have committed
to velocipy.
Either I'm getting a lot more done than usual, or my metric is not good
(probably a little of both).
The code with which I generated the graph is something like this:
import datetime
import pylab as p
fmt = "%a %b %d %H:%M:%S %Z %Y"
s = open('/tmp/changelog.txt').read() # from $ darcs changes
lines = s.splitlines()
days = {}
dts = []
for line in lines:
line = line.strip()
if " James" in line: # Just get my patches
try:
d, _ = line.split(" James")
except:
raise line
try:
dt = datetime.datetime.strptime(d, "%a %b %d %H:%M:%S %Z %Y").date()
dts.append(dt)
if not days.has_key(dt):
days[dt] = 0
days[dt] += 1
except ValueError, e:
print line
print dt
data = days.items()
data.sort()
x, y = zip(*data)
p.bar(x, y)
p.show()
blog comments powered by Disqus