Lines Matching refs:cell
228 def _Literal(self, cell, values, baseline_values): argument
229 cell.value = ' '.join([str(v) for v in values])
231 def _ComputeFloat(self, cell, values, baseline_values): argument
232 self._Literal(cell, values, baseline_values)
234 def _ComputeString(self, cell, values, baseline_values): argument
235 self._Literal(cell, values, baseline_values)
237 def _InvertIfLowerIsBetter(self, cell): argument
251 def Compute(self, cell, values, baseline_values): argument
263 cell.value = ''
278 cell.value = ''
282 self._ComputeFloat(cell, float_values, float_baseline_values)
283 self._InvertIfLowerIsBetter(cell)
285 self._ComputeString(cell, values, baseline_values)
295 def Compute(self, cell, values, baseline_values): argument
297 cell.value = values[self.iteration]
299 cell.value = '-'
308 def Compute(self, cell, values, baseline_values): argument
316 cell.value = len(_StripNone(values))
320 if cell.value == base_value:
326 tmp_cell.value = 1.0 + (float(cell.value - base_value) /
329 cell.bgcolor = tmp_cell.bgcolor
335 def _ComputeString(self, cell, values, baseline_values): argument
337 cell.value = str(values[0])
339 cell.value = '?'
345 def _ComputeFloat(self, cell, values, baseline_values): argument
346 cell.value = numpy.mean(values)
357 def _ComputeFloat(self, cell, values, baseline_values): argument
358 cell.value = min(values)
360 def _ComputeString(self, cell, values, baseline_values): argument
362 cell.value = min(values)
364 cell.value = ''
370 def _ComputeFloat(self, cell, values, baseline_values): argument
371 cell.value = max(values)
373 def _ComputeString(self, cell, values, baseline_values): argument
375 cell.value = max(values)
377 cell.value = ''
383 def _ComputeString(self, cell, values, baseline_values): argument
384 cell.value = '?'
390 def _ComputeFloat(self, cell, values, baseline_values): argument
391 cell.value = numpy.std(values)
397 def _ComputeFloat(self, cell, values, baseline_values): argument
402 cell.value = noise
411 def _ComputeString(self, cell, values, baseline_values): argument
420 cell.value = 'SAME'
422 cell.value = 'DIFFERENT'
424 cell.value = '?'
430 def _ComputeFloat(self, cell, values, baseline_values): argument
432 cell.value = float('nan')
435 _, cell.value = stats.lttest_ind(values, baseline_values)
437 def _ComputeString(self, cell, values, baseline_values): argument
476 def _InvertIfLowerIsBetter(self, cell): argument
477 if self._IsLowerBetter(cell.name):
478 if cell.value:
479 cell.value = 1.0 / cell.value
485 def _ComputeFloat(self, cell, values, baseline_values): argument
487 cell.value = numpy.mean(values) / numpy.mean(baseline_values)
489 cell.value = 0.00
492 cell.value = 1.00
499 def _ComputeFloat(self, cell, values, baseline_values): argument
501 cell.value = self._GetGmean(values) / self._GetGmean(baseline_values)
503 cell.value = 0.00
505 cell.value = 1.00
557 def Compute(self, cell): argument
565 if cell.value is None:
566 cell.string_value = ''
567 if isinstance(cell.value, float):
568 self._ComputeFloat(cell)
570 self._ComputeString(cell)
572 def _ComputeFloat(self, cell): argument
573 cell.string_value = '{0:.2f}'.format(cell.value)
575 def _ComputeString(self, cell): argument
576 cell.string_value = str(cell.value)
608 def _ComputeFloat(self, cell): argument
609 cell.string_value = '%0.2f' % float(cell.value)
610 if float(cell.value) < 0.05:
611 cell.bgcolor = self._GetColor(
612 cell.value,
627 def _ComputeFloat(self, cell): argument
630 v = float(cell.value)
637 cell.string_value = '%1.1f%s' % ((v / divisor), suffices[current - 1])
639 cell.string_value = str(cell.value)
649 def _ComputeFloat(self, cell): argument
650 cell.string_value = '%1.1f%%' % (float(cell.value) * 100)
651 cell.color = self._GetColor(
652 cell.value,
667 def _ComputeFloat(self, cell): argument
668 cell.string_value = '%+1.1f%%' % ((float(cell.value) - 1) * 100)
669 cell.color = self._GetColor(cell.value,
681 def _ComputeFloat(self, cell): argument
682 cell.string_value = '%+1.1f%%' % ((cell.value - 1) * 100)
683 cell.color = self._GetColor(cell.value,
698 def _ComputeFloat(self, cell): argument
699 cell.string_value = '--'
700 bgcolor = self._GetColor(cell.value,
703 cell.bgcolor = bgcolor
704 cell.color = bgcolor
811 cell = Cell()
812 cell.name = key.string_value
815 column.result.Compute(cell, values, baseline)
816 column.fmt.Compute(cell)
817 out_row.append(cell)
821 column.result.Compute(cell, values, baseline)
822 column.fmt.Compute(cell)
823 out_row.append(cell)
843 cell = Cell()
844 cell.name = key.string_value
845 column.result.Compute(cell, ['Fail'], baseline)
846 column.fmt.Compute(cell)
847 out_row.append(cell)
859 cell = Cell()
860 cell.header = True
862 cell.string_value = column.name
867 cell.string_value = '%s %s' % (result_name.replace('Result', ''),
870 header.append(cell)
876 cell = Cell()
877 cell.header = True
878 cell.string_value = str(s)
879 header = [cell]
881 cell.colspan = colspan
913 cell = Cell()
914 cell.header = True
920 cell.string_value = str(label) + ' (pass:%d fail:%d)' % (passes,
923 cell.string_value = str(label)
925 cell.string_value = str(label)
927 cell.colspan = base_colspan
929 cell.colspan = compare_colspan
930 top_header.append(cell)
937 for cell in row:
938 o += str(cell) + ' '
985 for cell in row:
986 if cell.color_row:
987 assert cell.color, 'Cell color not set but color_row set!'
989 row_style.color = cell.color
990 if cell.bgcolor_row:
991 assert cell.bgcolor, 'Cell bgcolor not set but bgcolor_row set!'
993 row_style.bgcolor = cell.bgcolor
1003 if not any([cell.colspan != 1 for cell in row]):
1047 cell = self._table[i][j]
1048 out = cell.string_value
1051 if cell.color:
1052 p, s = self._GetColorFix(cell.color)
1055 if cell.bgcolor:
1056 p, s = self._GetBGColorFix(cell.bgcolor)
1060 if cell.width:
1061 width = cell.width
1066 width = len(cell.string_value)
1067 if cell.colspan > 1:
1072 for k in range(cell.colspan):
1079 if cell.header:
1083 out = "<{0} colspan = \"{2}\"> {1} </{0}>".format(tag, out, cell.colspan)