cjfp-data / scripts /NS_RESPONSE_SHARING.md
santicas's picture
Mirror cjfp-data validation artifacts
c7c67ef verified
|
Raw History Blame Contribute Delete
3.1 kB

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:

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:

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:

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.

Maintainer: publish an updated campaign

From cjfp-data, register and upload only this target:

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:

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.