Conditions | 3 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | |||
27 | def _save(self, output_json, save): |
||
28 | output_file = self.storage.get("%s_%s.json" % (self._next_num, save)) |
||
29 | self.logger.info("output_file " + str(output_file)) |
||
30 | self.logger.info("save " + str(save)) |
||
31 | assert not output_file.exists() |
||
32 | with output_file.open('wb') as fh: |
||
33 | fh.write(safe_dumps(output_json, ensure_ascii=True, indent=4).encode()) |
||
34 | self.logger.info("Saved benchmark data in: %s" % output_file) |
||
35 | |||
42 |