Repository navigation
docs: array-free datacube modeling example via from_stream (streaming P5) - #582
Merged
Merged
Conversation
Add scripts/interferometer/features/datacube/modeling_array_free.py, the modeling.py fit with every channel built by Interferometer.from_stream from memory-mapped FITS chunks (no visibilities held), plus an MFS dataset from the summed per-channel SparseTerms (from_sparse_terms) and a phase_centre re-centring demo. Registered in smoke_tests.txt and the datacube README; navigator catalogue regenerated. Refs PyAutoLabs/PyAutoArray#600 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 1, 2026
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
Streaming visibilities phase 5 workspace half (epic
streaming-visibilities, Discussion https://github.com/orgs/PyAutoLabs/discussions/13; issue PyAutoLabs/PyAutoArray#600). Adds an array-free datacube modeling example: each channel of thedatacube/sim_simplecube is streamed throughal.Interferometer.from_stream(memory-mapped FITS generator, 2 chunks per channel) so nodata/noise_map/uv_wavelengthsare ever held, then fitted with the same per-channelAnalysisInterferometer→FactorGraphModelasmodeling.py. Two short sections then show (i) the MFS dataset assum()of the per-channelSparseTerms(from_sparse_terms;n_vis760 = 4 × 190 asserted; evaluated at the simulator's true model) and (ii)phase_centre=re-centring a channel on its dirty-image peak (peak moves to the origin with its value preserved; shifted + unshifted terms cannot be summed). Listed insmoke_tests.txtwith no__Env__override.Full-profile wall ≈ 13 min with
n_live=50(the prose says so); smoke profile 6 s. Channel 0's log evidence at the true model is identical on the array-free and the in-memoryfrom_fits+apply_sparse_operatordataset.Scripts Changed
scripts/interferometer/features/datacube/modeling_array_free.py— new array-free datacube example (from_streamper channel, MFS sum,phase_centredemo).scripts/interferometer/features/datacube/README.md— row for the new script.smoke_tests.txt— new entry.llms-full.txt,workspace_index.json— regenerated navigator catalogue (CI check).notebooks/interferometer/features/datacube/modeling_array_free.ipynb— generated.Upstream PR
from_stream(phase_centre=),SparseTerms.__radd__/phase_centreprovenance)dataset.fits)Needs the released library for the
phase_centresection andsum()of terms; everything else runs on the released stack. Merge after both library PRs (library-first gate).Test Plan
modeling_array_free.pyexit 0 under the smoke profile (6 s) and under the full profile;modeling.pyregression exit 0.check_navigator,check_search_memory,check_sizes.sh,blackpass.pyauto-heart smoke autolens --root <task worktree>on this branch: 42/42 scripts PASS, 2/2 notebooks PASS (modeling_array_free.pyPASS 6.4 s).Notes / follow-ups (not fixed here)
FitInterferometer.log_evidenceraisesLinAlgError(NumPy) / NaN (eager JAX) on both dataset types while the jit/vmap search path accepted it — the example evaluates the MFS fit at the true model and says why; filed as a Mind draft.cube_summary.json.Heart RED development override (human-authorized, 2026-10-01)
Shipped under the AUTONOMY.md "Human override for Heart RED (development only)". Live human authorization in the CLI session (Fable 5.1), quoted: "Yes: library now, workspace when its run passes" for task
streaming-p5-cubes-phase-centre(PyAutoLabs/PyAutoArray#600) — the workspace PR opens under that grant now that the full-profile run and the Heart smoke run have passed. Exact RED reasons at ship time (pyauto-heart readiness):None relate to this branch. Scope: push + PR-open only. Merge requires a separate human
/prmwith every required check green and the library PRs merged first; not a release.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code