def _flush_rows(self):
if not self._rows:
return
while True:
with open(self._output_name + '.png', 'wb') as fp:
try:
png.Writer(len(self._rows[0]), len(self._rows), greyscale=True).write(fp, self._rows)
break
except KeyboardInterrupt:
pass
# DUMP POINT
if self._options.dump_histo:
dump_to_csv(self._output_name + '-hh.csv', self._histoa.get(), 'w')
dump_to_csv(self._output_name + '-hh.csv', self._histob.get(), 'a')
评论列表
文章目录