File size: 3,104 Bytes
c7c67ef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | # Sharing the 1000-cosmology ns-response campaign
Git carries the small scripts, configuration profiles, documentation and DVC
manifest. DAGsHub's DVC storage carries the arrays, plots, logs and original
source snapshots (about 230 MB of numerical arrays). This campaign has its own
target, independent of both `chains.dvc` and `validation/fisher.dvc`.
## Collaborator: download only this campaign
For an existing checkout:
```bash
cd /path/to/cjfp-data
git pull --ff-only
python -m pip install -r requirements.txt
dvc pull scripts/validation_results/ns_derivative_lhs.dvc
```
For a first checkout:
```bash
git clone https://dagshub.com/santiagocasas/cjfp-data.git
cd cjfp-data
python -m pip install -r requirements.txt
dvc pull scripts/validation_results/ns_derivative_lhs.dvc
```
Use a Python environment of your choice for the installation. If DAGsHub requests
credentials, use your own account/token with access to this repository; configure
them locally, not in tracked files. The targeted `dvc pull` retrieves only the
ns-response bundle. A bare `dvc pull` would retrieve every DVC target, including
the chains, so keep the explicit `.dvc` filename.
The files appear under `scripts/validation_results/ns_derivative_lhs/`. Open the
four PNGs in `plots/` directly, or install the lightweight analysis dependencies
and regenerate them:
```bash
python -m pip install -r scripts/validation/requirements-analysis.txt
python scripts/validation/plot_ns_derivative_lhs.py \
scripts/validation_results/ns_derivative_lhs
```
No CLASS, EE2, SYREN or CosmicFishPie installation is needed to load the `.npy`
files or replot. For shapes, units, loading examples and solver reruns, see
[the methods guide](validation/ns_derivative_lhs.md).
## Maintainer: publish an updated campaign
From `cjfp-data`, register and upload **only this target**:
```bash
dvc add scripts/validation_results/ns_derivative_lhs
dvc push scripts/validation_results/ns_derivative_lhs.dvc
dvc status -c scripts/validation_results/ns_derivative_lhs.dvc
```
If DVC is not installed in the active environment, prefix those commands with
`uvx --from dvc`, for example
`uvx --from dvc dvc push scripts/validation_results/ns_derivative_lhs.dvc`.
Review the Git changes before staging. Stage the small files explicitly so that
unrelated notebooks, chain outputs and internal planning state are not included:
```bash
git status --short
git diff -- README.md scripts/NS_RESPONSE_SHARING.md
git add README.md scripts/NS_RESPONSE_SHARING.md scripts/validation \
scripts/validation_results/.gitignore \
scripts/validation_results/ns_derivative_lhs.dvc \
tests/ns_derivative_lhs_test.py
git diff --cached --stat
git diff --cached
git commit -m "Share ns-response Latin-hypercube validation through DVC"
git push origin main
```
Run the Git commit/push commands yourself after reviewing the staged changes.
Upload DVC data before publishing the Git manifest so collaborators can retrieve
the revision as soon as it appears. For later data-only updates, stage just the
changed manifest and any intentionally updated documentation.
|