Launch paper testing mode
(paper_name: str, fast_mode: bool = False)
| 551 | |
| 552 | |
| 553 | def launch_paper_test(paper_name: str, fast_mode: bool = False): |
| 554 | """Launch paper testing mode""" |
| 555 | try: |
| 556 | print("\n🧪 Launching Paper Test Mode") |
| 557 | print(f"📄 Paper: {paper_name}") |
| 558 | print(f"⚡ Fast mode: {'enabled' if fast_mode else 'disabled'}") |
| 559 | print("=" * 60) |
| 560 | |
| 561 | # Run the test setup |
| 562 | setup_cmd = [sys.executable, "test_paper.py", paper_name] |
| 563 | if fast_mode: |
| 564 | setup_cmd.append("--fast") |
| 565 | |
| 566 | result = subprocess.run(setup_cmd, check=True) |
| 567 | |
| 568 | if result.returncode == 0: |
| 569 | print("\n✅ Paper test setup completed successfully!") |
| 570 | print("📁 Files are ready in deepcode_lab/papers/") |
| 571 | print("\n💡 Next steps:") |
| 572 | print(" 1. Install MCP dependencies: pip install -r requirements.txt") |
| 573 | print( |
| 574 | f" 2. Run full pipeline: python -m workflows.paper_test_engine --paper {paper_name}" |
| 575 | + (" --fast" if fast_mode else "") |
| 576 | ) |
| 577 | |
| 578 | except subprocess.CalledProcessError as e: |
| 579 | print(f"\n❌ Paper test setup failed: {e}") |
| 580 | sys.exit(1) |
| 581 | except Exception as e: |
| 582 | print(f"\n❌ Unexpected error: {e}") |
| 583 | sys.exit(1) |
| 584 | |
| 585 | |
| 586 | def main(): |