Repository navigation
Magnification errors from posterior draws in every source_science script (arc phase 7b) - #613
Merged
Merged
Conversation
…ometer source_science (WIP) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…zation source_science (WIP) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dataset The __Many Visibilities__ section kept dataset_name="simple" and overwrote simple/data.fits with a simulation on a 0.01" grid, making the visibilities 100x brighter than tracer.json implies on the 0.1" grid the examples fit. It now writes simple_high_resolution (sma uv coverage; alma via two commented lines). The simple dataset's noise_sigma drops 1000 -> 10 so its signal-to-noise (~25 per visibility) is unchanged for every example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A power law fitted with constant regularization pulled the slope steep (~2.2 vs a true 2.0) and the posterior magnifications ~40% below the truth, with a 2h20m laptop fit. The caveat now states that result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cripts Measured numbers only where a full run was done (imaging pixelization, interferometer); the multi_galaxy, group and interferometer pixelization scripts describe how to read the errors without quoting unmeasured values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
…ctions 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
Closes #610. Every
source_science.pyscript gains a final__Magnification Errors__section: a quick lens-model fit (Nautilus,PositionsLH), then 100 draws from its posterior, recomputing the source, point and area magnifications for each draw and quoting the median and 68% interval, as LEGGOS II (arXiv:2606.20804) report theirs. The fit is the only slow part of each script, so it runs last.interferometer/simulator.py: the high-resolution section keptdataset_name="simple"and overwrote thesimpledataset; it now writessimple_high_resolution.Scripts Changed
scripts/imaging/source_science.py— magnification errors sectionscripts/imaging/features/multi_gaussian_expansion/source_science.py— magnification errors sectionscripts/imaging/features/pixelization/source_science.py— magnification errors section; isothermal quick fitscripts/interferometer/source_science.py— magnification errors sectionscripts/interferometer/features/pixelization/source_science.py— magnification errors section; isothermal quick fitscripts/multi_galaxy/source_science.py— magnification errors sectionscripts/multi_galaxy/features/multi_gaussian_expansion/source_science.py— magnification errors sectionscripts/multi_galaxy/features/pixelization/source_science.py— magnification errors sectionscripts/group/source_science.py— magnification errors sectionscripts/group/features/multi_gaussian_expansion/source_science.py— magnification errors sectionscripts/group/features/pixelization/source_science.py— magnification errors sectionscripts/interferometer/simulator.py— high-resolution section writes its own datasetUpstream PR
PyAutoLabs/PyAutoFit#1751 (merged, released in 2026.11.1.1)
Test Plan
source_science.pyscripts smoke-tested locally (exit 0)smoke_tests.txt, which does not include these scripts)Follow-ups filed in PyAutoMind: area-magnification fragments near critical curves (
draft/bug/autogalaxy/area_magnification_critical_curve_fragments.md) and slow multi_galaxy/group quick fits (draft/docs/autolens_workspace/source_science_multi_galaxy_group_quick_fits_slow.md).Heart: STALE (
release validation incomplete: no rehearsal for current source), acknowledged by the human 2026-11-02; task started under the human's Heart-RED override of 2026-10-31.🤖 Generated with Claude Code