Conversation
…e.py Mirror of PyAutoLabs/autogalaxy_workspace#61 for autolens_workspace.
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
Fix HDU indices in the
dataset.fitsreload block ofscripts/guides/results/start_here.py. The Simple-Loading section was passingdata_hdu=0, noise_map_hdu=1, psf_hdu=2, but the visualizer writesdataset.fitswith MASK at HDU 0 and the data / noise_map / psf triplet at HDUs 1 / 2 / 3. The off-by-one madenoise_map_hdu=1pull the data array (whose lens-residual pixels are negative), tripping thecheck_noise_mapvalidation inImaging.__init__withDatasetException: A value in the noise-map of the dataset is -0.0367 ... less than or equal to zero. (At native image sizes the same off-by-one also routes the noise map into the PSF slot and crashes theConvolverwith the sameKernelExceptionreported in autogalaxy_workspace#61.)This is the autolens_workspace counterpart to the already-merged PyAutoLabs/autogalaxy_workspace#61 and applies the same three-line fix.
Scripts Changed
scripts/guides/results/start_here.py— bumpeddata_hdu0→1,noise_map_hdu1→2,psf_hdu2→3 in the FITS-reload block (lines 249–251) so the kwargs match the visualizer's actual HDU layout:MASK, DATA, NOISE_MAP, PSF, OVER_SAMPLE_SIZE_LP, OVER_SAMPLE_SIZE_PIXELIZATION.Test Plan
python scripts/guides/results/start_here.pyruns to completion (exit 0) underPYAUTO_SMALL_DATASETS=1from a clean output folder.from_fits).🤖 Generated with Claude Code