db.py (1929:fb189519cb06) | db.py (1934:84c12fdd57f9) |
---|---|
1# Copyright (c) 2003-2004 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 144 unchanged lines hidden (view full) --- 153 self._method = type(self).sum 154 155 def get(self, job, stat): 156 run = self.allRunNames.get(job.name, None) 157 if run is None: 158 print 'run "%s" not found' % job 159 return None 160 | 1# Copyright (c) 2003-2004 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 144 unchanged lines hidden (view full) --- 153 self._method = type(self).sum 154 155 def get(self, job, stat): 156 run = self.allRunNames.get(job.name, None) 157 if run is None: 158 print 'run "%s" not found' % job 159 return None 160 |
161 from info import scalar, vector, value, total, len | 161 from info import scalar, vector, value, values, total, len |
162 stat.system = self[job.system] 163 if scalar(stat): 164 return value(stat, run.run) 165 if vector(stat): 166 return values(stat, run.run) 167 168 return None 169 --- 330 unchanged lines hidden --- | 162 stat.system = self[job.system] 163 if scalar(stat): 164 return value(stat, run.run) 165 if vector(stat): 166 return values(stat, run.run) 167 168 return None 169 --- 330 unchanged lines hidden --- |