algo/applications/collatz/scripts/02-run-pipeline.sh
Nicolas Cantu 9a975c73d7 Restructuration projet : applications, pour enfants, these
**Motivations:**
- Clarifier l'organisation du dépôt par domaine applicatif
- Séparer les contenus par public cible (adulte, enfant, thèse)

**Evolutions:**
- Nouvelle arborescence applications/ (collatz, IA)
- Dossier pour enfants/ pour les contenus jeunesse
- Dossier these/ pour le livre jeune adulte
- Scripts de pipeline Collatz (01-setup, 02-run-pipeline, 03-run-direct-pipeline)
- Candidats D18 palier2p30, registreK partagé en archives zip
- Plan de relecture scientifique mis à jour

**Pages affectées:**
- .cursor/plans/relecture-scientifique-collatz.md
- v0/ → applications/collatz/, applications/IA/, pour enfants/, these/
- IA_agents/ → pour enfants/
2026-03-02 00:18:40 +01:00

30 lines
911 B
Bash

#!/usr/bin/env bash
# Run full pipeline: reproduce_all_audits (D16/D17 after fusion)
# Implements section "Pipeline directe" from collatz_k_scripts/README.md
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
ROOT="${ROOT:-$PROJECT_ROOT/data/source}"
OUT="${OUT:-$PROJECT_ROOT/out}"
cd "$PROJECT_ROOT/collatz_k_scripts"
# Check required input files
for f in audit_60_etats_B12_mod4096_horizon7.json complétion_minorée_m15_vers_m16.md candidats_D10_palier2p17.md; do
path="$ROOT/$f"
if [[ ! -f "$path" ]]; then
echo "Missing input: $path"
echo "Set ROOT to directory containing input files, or copy files to $ROOT"
exit 1
fi
done
mkdir -p "$OUT"
echo "Running reproduce_all_audits --root $ROOT --out $OUT"
python reproduce_all_audits.py --root "$ROOT" --out "$OUT"
echo "Pipeline complete. Outputs in $OUT"