(self, csv_config)
| 12 | class csvMonitor(Monitor): |
| 13 | |
| 14 | def __init__(self, csv_config): |
| 15 | super().__init__(csv_config) |
| 16 | self.filenames = [] |
| 17 | self.enabled = csv_config.enabled |
| 18 | self.output_path = csv_config.output_path |
| 19 | self.job_name = csv_config.job_name |
| 20 | self.log_dir = self.setup_log_dir() |
| 21 | |
| 22 | def setup_log_dir(self, base=os.path.join(os.path.expanduser("~"), "csv_monitor")): |
| 23 | if self.enabled and dist.get_rank() == 0: |
nothing calls this directly
no test coverage detected