Skip to content

Commit a6b481a

Browse files
committed
remove legacy
1 parent 3ba747c commit a6b481a

9 files changed

Lines changed: 18 additions & 350 deletions

.cursor/plans/semi-manual_study_generation_pipeline_2bc004c7.plan.md

Lines changed: 0 additions & 341 deletions
This file was deleted.

legacy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ Optional, non-essential tools kept for reference.
55
- **gui.py** — Streamlit app for Generation Pipeline and Validation Pipeline (stage-by-stage control, file editing, validation runs). Run from repo root: `streamlit run legacy/gui.py`. Requires streamlit and the same env as the main pipeline (e.g. Gemini for validation). Not required for the CLI workflow.
66

77
- **validation_pipeline/** — Validates study implementations (metadata, specification, materials, evaluator) against the original paper using LLM-based checks. Entry: `python legacy/validation_pipeline/run_validation.py study_001`. Outputs under `legacy/validation_pipeline/outputs/`. See `legacy/validation_pipeline/README.md` for details.
8+
9+
- **scripts/** — Legacy PAS+ECS table generators (moved from `scripts/`). Run from repo root: `python legacy/scripts/legacy_generate_results_table_pas_ecs.py`, `python legacy/scripts/legacy_generate_production_results_pas_ecs.py`.

legacy/scripts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Legacy PAS+ECS table scripts (moved from scripts/)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Legacy PAS+ECS advanced generators

scripts/advanced/legacy_generate_production_results_pas_ecs.py renamed to legacy/scripts/advanced/legacy_generate_production_results_pas_ecs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
from typing import Dict, List, Tuple, Optional
1818
import numpy as np
1919

20-
# Add parent directory to path for imports
21-
sys.path.insert(0, str(Path(__file__).parent.parent))
20+
# Add repo root to path for imports (this file lives in legacy/scripts/advanced/)
21+
_REPO_ROOT = Path(__file__).resolve().parent.parent.parent
22+
sys.path.insert(0, str(_REPO_ROOT))
2223

2324
# Study groups based on studies_classification.md
2425
STUDY_GROUPS = {

scripts/advanced/legacy_generate_results_table_pas_ecs.py renamed to legacy/scripts/advanced/legacy_generate_results_table_pas_ecs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
from collections import defaultdict
1919
from datetime import datetime
2020

21-
# Add parent directory to path for imports
22-
sys.path.insert(0, str(Path(__file__).parent.parent))
21+
# Add repo root to path for imports (this file lives in legacy/scripts/advanced/)
22+
_REPO_ROOT = Path(__file__).resolve().parent.parent.parent
23+
sys.path.insert(0, str(_REPO_ROOT))
2324

2425

2526
def calculate_usage_from_individual_data(benchmark_data: dict) -> dict:
@@ -1562,7 +1563,7 @@ def main():
15621563
if not test_results:
15631564
continue
15641565

1565-
gt_path = Path(__file__).parent.parent / "data" / "studies" / study_id / "ground_truth.json"
1566+
gt_path = _REPO_ROOT / "data" / "studies" / study_id / "ground_truth.json"
15661567
gt_lookup = None
15671568
if gt_path.exists():
15681569
try:

scripts/legacy_generate_production_results_pas_ecs.py renamed to legacy/scripts/legacy_generate_production_results_pas_ecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Thin wrapper: delegates to scripts/advanced/legacy_generate_production_results_pas_ecs.py."""
2+
"""Thin wrapper: delegates to legacy/scripts/advanced/legacy_generate_production_results_pas_ecs.py."""
33
import sys
44
from pathlib import Path
55

scripts/legacy_generate_results_table_pas_ecs.py renamed to legacy/scripts/legacy_generate_results_table_pas_ecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Thin wrapper: delegates to scripts/advanced/legacy_generate_results_table_pas_ecs.py."""
2+
"""Thin wrapper: delegates to legacy/scripts/advanced/legacy_generate_results_table_pas_ecs.py."""
33
import sys
44
from pathlib import Path
55

0 commit comments

Comments
 (0)