Skip to content

refactor: rename the multi profiling package to multi_dataset - #97

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/multi-package-rename-multi-dataset
Jul 30, 2026
Merged

refactor: rename the multi profiling package to multi_dataset#97
Jammy2211 merged 1 commit into
mainfrom
feature/multi-package-rename-multi-dataset

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Phase 2b of the multimulti_dataset rename (PyAutoLabs/autolens_workspace#408).

What changed

Old New
scripts/multi/ scripts/multi_dataset/
dataset/multi/ (own, gitignored) dataset/multi_dataset/
results/runtime/multi/ results/runtime/multi_dataset/

Plus the five prose references into autolens_workspace, whose scripts/multi/... paths started returning 404 when autolens_workspace#414 merged.

The recorded .stdout under results/runtime/ was moved, not rewritten — its content is untouched.

Safe against sweep.py

scripts/misc/likelihood_runtime/sweep.py builds scripts/<cls>/likelihood_runtime/<model>.py from its CELLS list. No cell names multi, so nothing in the sweep matrix resolved through the renamed directory. It also fails loudly (!!! missing script) rather than silently if a path is wrong, so a mistake here would surface immediately rather than quietly skipping a cell.

Drive-by fixes

Both pre-existing, and both of which the rename would otherwise have carried forward still broken:

  1. autolens_workspace_test/scripts/jax_likelihood_functions/multi/shared_preloads.py (×2) names a jax_likelihood_functions/ directory that does not exist. Real path: scripts/multi_dataset/jax_likelihood/shared_preloads.py.
  2. likelihood_runtime/multi/shared_preloads.py (×2) has its two path components reversed relative to the real multi_dataset/likelihood_runtime/shared_preloads.py.

Deliberately NOT renamed

scripts/misc/simulators/multi.py, its multi_summary_v*.json output stem, and the "type": "multi" field it writes.

Those three form one coherent identifier for this repo's own profiling result series. Nothing reads the "type" field (verified — it is write-only descriptive metadata), the output filename is a separate literal rather than derived from it, and renaming part of the triple would either orphan the historical series (multi_summary_v2026.5.14.2.json) or leave it internally inconsistent. Same call as the hard_group_multi.md benchmark id in autolens_assistant.

Verification

Post-move sweep returns zero live hits except that deliberate triple; the renamed package byte-compiles.

Refs PyAutoLabs/autolens_workspace#408

Phase 2b of the rename tracked at autolens_workspace#408.

  scripts/multi/          ->  scripts/multi_dataset/
  dataset/multi/          ->  dataset/multi_dataset/   (own, gitignored)
  results/runtime/multi/  ->  results/runtime/multi_dataset/

Also re-points the five prose references into autolens_workspace, whose
`scripts/multi/...` paths began returning 404 when #414 merged.

Safe against sweep.py: it builds `scripts/<cls>/likelihood_runtime/
<model>.py` from its CELLS list, and no cell names `multi` — so nothing
in the sweep matrix resolved through the renamed directory. It also
fails loudly ("!!! missing script") rather than silently if a path is
wrong.

Drive-by fixes, both pre-existing and both of which the rename would
otherwise have carried forward still-broken:
- `autolens_workspace_test/scripts/jax_likelihood_functions/multi/
  shared_preloads.py` (x2) named a `jax_likelihood_functions/` directory
  that does not exist; the real path is
  `scripts/multi_dataset/jax_likelihood/shared_preloads.py`.
- `likelihood_runtime/multi/shared_preloads.py` (x2) had its two path
  components reversed relative to the real
  `multi_dataset/likelihood_runtime/shared_preloads.py`.

Deliberately NOT renamed: `scripts/misc/simulators/multi.py`, its
`multi_summary_v*.json` output stem, and the `"type": "multi"` field it
writes. Those three form one coherent identifier for this repo's own
profiling result series — nothing reads the field, the filename is a
separate literal, and renaming part of the triple would either orphan
the historical series or leave it internally inconsistent.

Verified: package byte-compiles; the renamed results directory keeps its
recorded .stdout intact (moved, not rewritten).

Refs PyAutoLabs/autolens_workspace#408
@Jammy2211
Jammy2211 merged commit 6698a81 into main Jul 30, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/multi-package-rename-multi-dataset branch July 30, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant