Skip to content

fix: add quick_update kwarg to VisualizerImaging.visualize_combined - #414

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/visualize-combined-quick-update-kwarg
May 15, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/visualize-combined-quick-update-kwarg

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds the quick_update: bool = False kwarg to VisualizerImaging.visualize_combined (autogalaxy/imaging/model/visualizer.py:144). Mirrors the PyAutoFit-side fix in PyAutoLabs/PyAutoFit#1267 on the same branch name. The plumbing was introduced by PyAutoFit commit a1e360567 ("Fix AnalysisFactor.visualize_combined dispatch in FactorGraph") which updated PyAutoLens's VisualizerImaging + VisualizerInterferometer but missed PyAutoGalaxy's VisualizerImaging.

Today any FactorGraphModel fit that uses autogalaxy.AnalysisImaging crashes on the first quick-update iteration with TypeError: VisualizerImaging.visualize_combined() got an unexpected keyword argument 'quick_update'.

Pure additive — kwarg defaults to False and the body (which handles imaging fit visualisation) is unchanged.

This was surfaced during follow-up audit work for PyAutoLabs/PyAutoFit#1262 (priors-jax-native).

API Changes

Added quick_update: bool = False kwarg to VisualizerImaging.visualize_combined. Purely additive — existing call sites still work because the kwarg has a default.
See full details below.

Test Plan

  • pytest test_autogalaxy/imaging/model — 10 passed
  • Cross-validated against PyAutoFit-side fix on same branch — all four previously-broken FactorGraphModel integration scripts (graphical/simultaneous.py, graphical/hierarchical.py, features/graphical_models.py, cookbooks/multiple_datasets.py) now pass end-to-end.
Full API Changes (for automation & release notes)

Added

  • VisualizerImaging.visualize_combined(analyses, paths, instance, during_analysis, quick_update=False) — new quick_update kwarg matching the base class signature.

Migration

None required. Pure addition with a default value.

🤖 Generated with Claude Code

Mirror PyAutoFit commit a1e360567's quick_update plumbing. Base
Visualizer.visualize_combined and AnalysisFactor.visualize_combined accept
and forward quick_update, but VisualizerImaging was missed at the time.
Result: any FactorGraphModel fit using autogalaxy.AnalysisImaging crashed
on the first quick-update iteration with TypeError.

Pure additive — kwarg defaults to False, body unchanged.

Refs PyAutoLabs/PyAutoFit#1262

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 15, 2026
@Jammy2211
Jammy2211 merged commit a74d448 into main May 15, 2026
4 of 5 checks passed
@Jammy2211
Jammy2211 deleted the feature/visualize-combined-quick-update-kwarg branch May 15, 2026 08:13
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant