Skip to content

feat: runtime_estimates.yaml v2 with dataset sizes and measured efficiency curve (5E-1) - #535

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/likelihood-lifecycle-p5e1-profiling
Nov 24, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/likelihood-lifecycle-p5e1-profiling

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Likelihood-lifecycle phase 5E-1, the first of three PRs under PyAutoLabs/PyAutoLens#887. catalogue/runtime_estimates.yaml moves to schema v2 so PyAutoLens can match a live dataset to a measured cell and estimate its run time. The changes:

  • every row carries the dataset size it was timed at;
  • the stale parallel_efficiency upper bound is replaced by the measured phase-4 curve;
  • the exporter can copy the catalogue into a PyAutoLens checkout.

Changes

  • Size fields: export_runtime_estimates.py adds n_pixels_masked, n_vis and source_pixels to each row.
    • They are read from the configuration block of each record's own committed evidence JSON (image_pixels_masked, visibilities, source_pixels_requested / source_pixels). Nothing is hand-typed, so --check stays reproducible.
    • A missing evidence file or a non-integer value fails the export.
  • Header:
    • version: 2;
    • parallel_efficiency is the measured curve {1: 1.0, 2: 0.68, 4: 0.62, 8: 0.55, 16: 0.36, 32: 0.28} (imaging/rectangular, numba_cpu_sparse_fp64; from autolens_inference phase 4 wall/model.py), embedded as a cited constant because CI doesn't check out autolens_inference;
    • a size_fields note.
  • --copy-to <PyAutoLens>: writes the identical file to <path>/autolens/config/runtime_estimates.yaml after the catalogue. It refuses if <path>/autolens is missing, and is a usage error with --check.
  • Regenerated catalogue: 116 cells. 106 rows have sizes; 10 are all-null (cluster 4, weak 2, point source 4, which carry no image or visibility size). n_pixels_masked is on 104 rows, n_vis on 38 and source_pixels on 92.

Test Plan

  • pytest scripts/misc/*/test -q: 1915 passed, 6 skipped
  • pytest scripts/misc/tooling/test/test_runtime_estimates.py: 13 passed. New: per-instrument sizes, missing-evidence refusal, the v2 header, the embedded curve equal to wall/model.py (parsed with ast; skipped in CI without autolens_inference), --copy-to with a temp dir, --copy-to refusal, and --check drift.
  • ruff check . and ruff format --check .: clean
  • export_runtime_estimates.py --pulse ../PyAutoPulse --check: runtime_estimates: current
  • Heart dev gate: GREEN (autolens_profiling is not Heart-gated; PR checks decide)

Notes:

  • Sizes are per dataset or per channel for multi_dataset (2 datasets) and datacube (34 channels), as the size_fields note says. n_datasets / n_channels aren't in the yaml yet; that's a small follow-up if the PyAutoLens matcher needs the multiplicity.
  • catalogue/reference_hosts.json still declares η = 1.0 for the Pulse node-throughput projection. It's untouched here, because changing it reaches into the Pulse snapshot and dashboards.
  • No other consumer reads this yaml: PyAutoPulse's parallel_efficiency.value readers use the per-record projected_node_throughput block, not this file. PyAutoLens reads it from 5E-3.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…-efficiency curve and --copy-to (5E-1)

The exporter reads n_pixels_masked / n_vis / source_pixels from each
record's committed evidence JSON, replaces the stale parallel_efficiency
upper bound with the measured phase-4 curve, bumps the schema to v2, and
adds --copy-to <PyAutoLens> to write autolens/config/runtime_estimates.yaml.

Part of PyAutoLabs/PyAutoLens#887 (likelihood-lifecycle phase 5E-1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 72939f3 into main Nov 24, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/likelihood-lifecycle-p5e1-profiling branch November 24, 2026 20:34
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