Create timestamped output directory
(args)
| 159 | |
| 160 | |
| 161 | def create_output_dir(args) -> Path: |
| 162 | """Create timestamped output directory""" |
| 163 | if args.output_dir: |
| 164 | output_dir = Path(args.output_dir) |
| 165 | else: |
| 166 | project_root = get_project_root() |
| 167 | run_id = f"{int(time.time())}-{uuid4().hex[:8]}" |
| 168 | output_dir = project_root / "outputs" / "cli" / "paper2poster" / run_id |
| 169 | |
| 170 | output_dir.mkdir(parents=True, exist_ok=True) |
| 171 | return output_dir |
| 172 | |
| 173 | |
| 174 | async def run_paper2poster_workflow(args, input_path: str, output_dir: Path): |
no test coverage detected