Fix a couple of bug in the values() vector accessor
authorNathan Binkert <binkertn@umich.edu>
Fri, 21 Oct 2005 21:28:47 +0000 (17:28 -0400)
committerNathan Binkert <binkertn@umich.edu>
Fri, 21 Oct 2005 21:28:47 +0000 (17:28 -0400)
util/stats/db.py:
    need to import the values function
util/stats/info.py:
    it's just run

--HG--
extra : convert_revision : 3cb67d8112a1a5fdf761b73732859a71f585bd1f

util/stats/db.py
util/stats/info.py

index 0d321a360ca1d1bfddaf0c30f579949054b13273..1ece6df88ef94cb13c78697f27ea60283a7aa22c 100644 (file)
@@ -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)
index 9932d7922043f661c0e9170e9b16d05dbe89135d..889af6d53c268ceb23e2b8a438af9113ccd6e30d 100644 (file)
@@ -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)