Lines Matching refs:record
84 def add_record(self, record):
86 Add a record to this summary.
89 record (Record): The Record to add.
91 if record.status == Result.PASS:
93 elif record.status == Result.WARN:
95 elif record.status == Result.FAIL:
100 if record.tTimeRel is not None:
101 self.tTimesRel.append(record.tTimeRel)
102 self.cTimesRel.append(record.cTimeRel)
103 self.psnrRel.append(record.psnrRel)
105 self.cTime.append(record.cTime)
106 self.psnr.append(record.psnr)
154 A single result record, sotring results for a singel image and block size.
168 Create a result record, initially in the NOTRUN status.
227 def add_record(self, record):
229 Add a new test record to this result set.
232 record (Record): The test record to add.
234 self.records.append(record)
238 Get a record matching the arguments.
254 for record in self.records:
255 if record.blkSz == blkSz and record.name == name:
256 return record
262 Get a record matching the config of another record.
265 other (Record): The pattern result record to match.
273 for record in self.records:
274 if record.blkSz == other.blkSz and record.name == other.name:
275 return record
287 for record in self.records:
288 summary.add_record(record)
306 for record in self.records:
307 self._save_record(writer, record)
321 def _save_record(self, writer, record):
323 Write a record to the CSV file.
327 record (Record): The record to write.
330 record.blkSz,
331 record.name,
332 "%0.4f" % record.psnr,
333 "%0.4f" % record.tTime,
334 "%0.4f" % record.cTime,
335 "%0.4f" % record.cRate]
351 record = Record(row[1], row[2],
354 self.add_record(record)