Require explicit data setup option
This commit is contained in:
+19
-5
@@ -49,13 +49,27 @@ _local/reports/ # comparison reports
|
||||
|
||||
## Commands
|
||||
|
||||
Check setup without downloading or rebuilding:
|
||||
Run the setup script with one explicit option:
|
||||
|
||||
```bash
|
||||
bash data-setup/run_data_setup.sh <option>
|
||||
```
|
||||
|
||||
Available options:
|
||||
|
||||
- `--dry-run` — check setup scripts only.
|
||||
- `--download-only` — download script-accessible sources.
|
||||
- `--build-test` — rebuild model-ready inputs from existing local sources.
|
||||
- `--compare` — compare regenerated inputs with committed `data/` inputs.
|
||||
- `--full-test` — download, rebuild, and compare locally.
|
||||
|
||||
Minimal check:
|
||||
|
||||
```bash
|
||||
bash data-setup/run_data_setup.sh --dry-run
|
||||
```
|
||||
|
||||
Download all script-accessible sources. Manifesto requires an API key; V-Party requires an email for the provider form:
|
||||
Download sources:
|
||||
|
||||
```bash
|
||||
bash data-setup/run_data_setup.sh --download-only
|
||||
@@ -82,19 +96,19 @@ Morgan is not a public provider download. The local OCR/transcription file can b
|
||||
_local/raw/morgan/morgan_positions_raw.csv
|
||||
```
|
||||
|
||||
Rebuild model-ready inputs after placing all required local files:
|
||||
Rebuild model-ready inputs:
|
||||
|
||||
```bash
|
||||
bash data-setup/run_data_setup.sh --build-test
|
||||
```
|
||||
|
||||
Compare regenerated inputs with the committed inputs:
|
||||
Compare regenerated inputs:
|
||||
|
||||
```bash
|
||||
bash data-setup/run_data_setup.sh --compare
|
||||
```
|
||||
|
||||
Run the full local test sequence — source downloads, raw-file preflight, local rebuild, and comparison — after setting required environment variables and placing Morgan locally:
|
||||
Full local source test:
|
||||
|
||||
```bash
|
||||
bash data-setup/run_data_setup.sh --full-test
|
||||
|
||||
Reference in New Issue
Block a user