Repository navigation
feat: runtime_estimates.yaml v2 with dataset sizes and measured efficiency curve (5E-1) - #535
Merged
Merged
Conversation
…-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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Likelihood-lifecycle phase 5E-1, the first of three PRs under PyAutoLabs/PyAutoLens#887.
catalogue/runtime_estimates.yamlmoves to schema v2 so PyAutoLens can match a live dataset to a measured cell and estimate its run time. The changes:parallel_efficiencyupper bound is replaced by the measured phase-4 curve;Changes
export_runtime_estimates.pyaddsn_pixels_masked,n_visandsource_pixelsto each row.configurationblock of each record's own committed evidence JSON (image_pixels_masked,visibilities,source_pixels_requested/source_pixels). Nothing is hand-typed, so--checkstays reproducible.version: 2;parallel_efficiencyis 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 4wall/model.py), embedded as a cited constant because CI doesn't check out autolens_inference;size_fieldsnote.--copy-to <PyAutoLens>: writes the identical file to<path>/autolens/config/runtime_estimates.yamlafter the catalogue. It refuses if<path>/autolensis missing, and is a usage error with--check.n_pixels_maskedis on 104 rows,n_vison 38 andsource_pixelson 92.Test Plan
pytest scripts/misc/*/test -q: 1915 passed, 6 skippedpytest scripts/misc/tooling/test/test_runtime_estimates.py: 13 passed. New: per-instrument sizes, missing-evidence refusal, the v2 header, the embedded curve equal towall/model.py(parsed withast; skipped in CI without autolens_inference),--copy-towith a temp dir,--copy-torefusal, and--checkdrift.ruff check .andruff format --check .: cleanexport_runtime_estimates.py --pulse ../PyAutoPulse --check:runtime_estimates: currentNotes:
size_fieldsnote says.n_datasets/n_channelsaren't in the yaml yet; that's a small follow-up if the PyAutoLens matcher needs the multiplicity.catalogue/reference_hosts.jsonstill declares η = 1.0 for the Pulse node-throughput projection. It's untouched here, because changing it reaches into the Pulse snapshot and dashboards.parallel_efficiency.valuereaders use the per-recordprojected_node_throughputblock, not this file. PyAutoLens reads it from 5E-3.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code