Conversation
…nv_vars.yaml scripts/multi/visualization_imaging.py loads the 150x150 lens_sersic dataset from disk via Imaging.from_fits (which does not honour PYAUTO_SMALL_DATASETS) and then builds its mask via al.Mask2D.circular (which DOES cap to 15x15 under PYAUTO_SMALL_DATASETS=1, even when shape_native is explicit). The mismatch raises a (150,150) vs (15,15) broadcast error on apply_mask. The script does not run a non-linear search, so it is only useful at full resolution; unset the cap via the existing env_vars.yaml override mechanism. Closes Cluster E from the 2026-05-07 release-prep triage. Co-Authored-By: Claude Opus 4.7 (1M context) <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
The triage runner (driven by
autolens_workspace_test/config/build/env_vars.yaml'sdefaults:block, which setsPYAUTO_SMALL_DATASETS: "1") reproducibly failsscripts/multi/visualization_imaging.pywithValueError: operands could not be broadcast together with shapes (150,150) (15,15)atdataset.apply_mask(mask=mask). The script already derives mask shape fromdataset.shape_native, butal.Mask2D.circularsilently caps to 15×15 under the env var whileImaging.from_fitsdoes not, leaving the mask and dataset shape-mismatched. Unset the cap for this script via the existing override mechanism.Scripts Changed
config/build/env_vars.yaml— addedmulti/visualization_imagingto the override list (unsettingPYAUTO_SMALL_DATASETS). Same shape as the existingimaging/visualization,imaging/model_fit, etc. overrides; comment block explains the asymmetry betweenMask2D.circular's SMALL_DATASETS handling andImaging.from_fits's lack thereof.Test Plan
env_config.build_env_for_scriptresolvesmulti/visualization_imaging.py→PYAUTO_SMALL_DATASETSunset.multi/visualization_interferometer.pyand othermulti/scripts still seePYAUTO_SMALL_DATASETS=1(no bleed).PYAUTO_TEST_MODE=2 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1withPYAUTO_SMALL_DATASETSunset).multi/visualization_imaging.pyis not insmoke_tests.txt(not added).Follow-up
Mask2D.circular'sPYAUTO_SMALL_DATASETS=1cap silently overrides an explicitshape_nativeargument — a real library wart inPyAutoArray/autoarray/mask/mask_2d.py:363-366. A future PR could either only apply the cap whenshape_nativeis at its default, or makeImaging.from_fitsalso honour the env var so the dataset and mask stay consistent. Worth filing as its ownPyAutoArrayissue.🤖 Generated with Claude Code