Removed debugging statements
svn: r12860
This commit is contained in:
parent
d5a9ffe96a
commit
d5b8862082
@ -201,7 +201,7 @@ class AgeStatsGramplet(Gramplet):
|
|||||||
|
|
||||||
def compute_stats(self, hash):
|
def compute_stats(self, hash):
|
||||||
""" Returns the statistics of a dictionary of data """
|
""" Returns the statistics of a dictionary of data """
|
||||||
print "compute_stats", hash
|
#print "compute_stats", hash
|
||||||
hashkeys = sorted(hash)
|
hashkeys = sorted(hash)
|
||||||
count = sum(hash.itervalues())
|
count = sum(hash.itervalues())
|
||||||
sumval = sum(k * hash[k] for k in hash)
|
sumval = sum(k * hash[k] for k in hash)
|
||||||
@ -241,7 +241,7 @@ class AgeStatsGramplet(Gramplet):
|
|||||||
where the key is the age, and the value stored is the count.
|
where the key is the age, and the value stored is the count.
|
||||||
"""
|
"""
|
||||||
# first, binify:
|
# first, binify:
|
||||||
print "create_bargraph", hash
|
#print "create_bargraph", hash
|
||||||
bin = [0] * (max_val/bin_size)
|
bin = [0] * (max_val/bin_size)
|
||||||
for value, hash_value in hash.iteritems():
|
for value, hash_value in hash.iteritems():
|
||||||
bin[value/bin_size] += hash_value
|
bin[value/bin_size] += hash_value
|
||||||
|
Loading…
Reference in New Issue
Block a user