Skip to content

fix: reload results guide dataset noise map #113

@Jammy2211

Description

@Jammy2211

Overview

The fresh PyAutoBuild release-prep run 2026-06-09T18-03-42Z shows autogalaxy_workspace/scripts/guides/results/start_here.py failing in the simple-loading section. The script attempts to load image/dataset.fits from a completed fit, but strict Imaging.from_fits(...) validation rejects the saved noise-map HDU because it contains zero values.

The report correlates this failure with the recent results-guide dataset reload change, so this should be treated as a narrowly scoped workspace release fix.

Plan

  • Inspect the saved-results reload section in scripts/guides/results/start_here.py.
  • Update only the FITS reload path so the guide can inspect saved output artifacts without applying strict input-dataset noise-map validation.
  • Keep the main modeling dataset load unchanged.
  • Rerun scripts/guides/results/start_here.py in a clean task worktree.
  • Ship a pending-release workspace PR if the target script passes.
Detailed implementation plan

Affected Repositories

  • autogalaxy_workspace (primary)

Work Classification

Workspace

Branch Survey

Repository Current Branch Dirty?
./autogalaxy_workspace main dirty from local full-run regenerated datasets
./PyAutoPrompt main dirty from unrelated deleted prompt files plus this new prompt

Suggested branch: feature/autogalaxy-results-start-here-noise-map
Worktree root: ~/Code/PyAutoLabs-wt/autogalaxy-results-start-here-noise-map/

Implementation Steps

  1. Work only in the task worktree, not the dirty canonical checkout.
  2. In scripts/guides/results/start_here.py, inspect the block loading image/dataset.fits with data_hdu=1, noise_map_hdu=2, and psf_hdu=3.
  3. Apply the smallest supported API change for loading saved result FITS whose noise-map HDU may be zero-valued.
  4. Rerun scripts/guides/results/start_here.py with the PyAutoBuild environment variables used by the release runner.
  5. Ship via workspace PR with pending-release.

Key Files

  • scripts/guides/results/start_here.py — failing saved-results reload block.

Original Prompt

Click to expand starting prompt

continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions