(out_dir, run, suffix)
| 244 | |
| 245 | |
| 246 | def create_writer_for_run(out_dir, run, suffix): |
| 247 | # Special case: the "." run corresponds to the root directory. |
| 248 | if run == ".": |
| 249 | dir = out_dir |
| 250 | else: |
| 251 | # Convert path separators in run names to be platform-specific. |
| 252 | translated_run = run.replace("/", os.path.sep) |
| 253 | dir = os.path.join(out_dir, translated_run) |
| 254 | return EventFileWriter( |
| 255 | dir, |
| 256 | max_queue_size=1000, |
| 257 | filename_suffix=".tbdev-converter-" + suffix, |
| 258 | ) |
| 259 | |
| 260 | |
| 261 | def main(): |
no test coverage detected
searching dependent graphs…