(self, metrics: Dict[str, Any])
| 166 | self.save_metrics_all(metrics) |
| 167 | |
| 168 | def save_metrics_all(self, metrics: Dict[str, Any]): |
| 169 | if not os.path.exists(self.get_output_dir()): |
| 170 | try: os.makedirs(self.get_output_dir()) |
| 171 | except: pass |
| 172 | with open(os.path.join(self.get_output_dir(), "results.json"), "w", encoding="utf-8") as f: |
| 173 | f.write(json.dumps(metrics, ensure_ascii=False, indent=4)) |
| 174 | |
| 175 | def get_output_dir(self) -> str: |
| 176 | """ |
no test coverage detected