Skip to content

fix: disable positions-likelihood exception for pix/delaunay profiling#39

Merged
Jammy2211 merged 1 commit into
mainfrom
fix/disable-positions-lh-exception
May 28, 2026
Merged

fix: disable positions-likelihood exception for pix/delaunay profiling#39
Jammy2211 merged 1 commit into
mainfrom
fix/disable-positions-lh-exception

Conversation

@Jammy2211
Copy link
Copy Markdown
Contributor

Summary

Surfaced by A100 delaunay retry (322593 Nautilus + 322594 NSS) after PR #38: both crashed at `AnalysisImaging.modify_before_fit`:

```
autogalaxy.exc.AnalysisException:
You have begun a model-fit which reconstructs the source using a pixelization.
However, you have not input a `positions_likelihood_list` object.
```

PyAutoLens's analysis classes raise this by default when a pixelization is fitted without positions, to guard against the demagnified-source systematic. SLaM pipelines build a `positions_likelihood` from a prior `source_lp` result; we don't have that here.

For profiling we don't care about solution quality — we're measuring sampler + likelihood cost end-to-end. Disable the check via `raise_inversion_positions_likelihood_exception=False` for the pix/delaunay model types only. MGE / point-source cells keep the default.

Test plan

  • Resubmit 322593-equivalent Nautilus + NSS delaunay HST fp64; both reach sampling and write metric JSONs.

🤖 Generated with Claude Code

PyAutoLens's AnalysisImaging / AnalysisInterferometer raises an
AnalysisException by default when a pixelization-based source is fitted
without a ``positions_likelihood_list``. The check guards against the
demagnified-source systematic that pixelization fits are vulnerable to.

For profiling we don't care about solution quality — we're measuring
sampler + likelihood cost — and we don't have a prior phase result to
derive ``positions_likelihood_from`` from. Disable the check via
``raise_inversion_positions_likelihood_exception=False`` for the
pixelization and delaunay model_types only; MGE / point-source cells
keep the default (no inversion-positions concern).

Discovered by A100 delaunay retry (322593 + 322594) crashing at
AnalysisImaging.modify_before_fit after the areas_factor fix landed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 93651c2 into main May 28, 2026
@Jammy2211 Jammy2211 deleted the fix/disable-positions-lh-exception branch May 28, 2026 19:48
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