Fix a couple of bug in the values() vector accessor
util/stats/db.py: need to import the values function util/stats/info.py: it's just run --HG-- extra : convert_revision : 3cb67d8112a1a5fdf761b73732859a71f585bd1f
This commit is contained in:
parent
12822443a5
commit
13bf7e27ac
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ class Database(object):
|
|||
print 'run "%s" not found' % job
|
||||
return None
|
||||
|
||||
from info import scalar, vector, value, total, len
|
||||
from info import scalar, vector, value, values, total, len
|
||||
stat.system = self[job.system]
|
||||
if scalar(stat):
|
||||
return value(stat, run.run)
|
||||
|
|
|
@ -51,7 +51,7 @@ def values(stat, run):
|
|||
stat = unproxy(stat)
|
||||
result = []
|
||||
for i in xrange(len(stat)):
|
||||
val = value(stat, run.run, i)
|
||||
val = value(stat, run, i)
|
||||
if val is None:
|
||||
return None
|
||||
result.append(val)
|
||||
|
|
Loading…
Reference in a new issue