Skip to content

fix: multi-wavelength modeling green (auto-simulate + SersicCore effective_radius=0) - #306

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/sersic-core-effective-radius-zero
Jul 21, 2026
Merged

fix: multi-wavelength modeling green (auto-simulate + SersicCore effective_radius=0)#306
Jammy2211 merged 1 commit into
mainfrom
feature/sersic-core-effective-radius-zero

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Makes multi/features/wavelength_dependence/modeling runnable green (was NEEDS_FIX). Two issues combined:

  1. SersicCore ZeroDivisionError on effective_radius=0 — the marker's stated "FitException" was really this; the model's effective_radius = wavelength*m + c relation (symmetric-about-0 m,c priors) gives effective_radius=0 at the test-mode median. Fixed upstream in PyAutoGalaxy#515.
  2. Missing auto-simulate block — unlike its sibling multi/modeling.py, this script had no dataset auto-simulation, so it FileNotFoundErrored on a fresh checkout. Added the standard should_simulate → subprocess simulator.py block.

With both, the script runs green from a clean state under the CI smoke env.

Scripts Changed

  • scripts/multi/features/wavelength_dependence/modeling.py — add dataset auto-simulate block (mirrors multi/modeling.py)
  • config/build/no_run.yaml — drop the multi/features/wavelength_dependence/modeling NEEDS_FIX marker
  • notebooks/multi/features/wavelength_dependence/modeling.ipynb — regenerated

Upstream PR

PyAutoLabs/PyAutoGalaxy#515

Test Plan

  • modeling.py runs green from clean (auto-simulates then models; EXIT 0) under PYAUTO_DISABLE_JAX=1 TEST_MODE=2 SMALL_DATASETS=1
  • run_smoke.py — 9/9 passed (against the fixed PyAutoGalaxy branch)
  • Merges after PyAutoGalaxy#515 (library-first)

Generated by the PyAutoLabs agent workflow.

… fix)

- Add the missing dataset auto-simulate block to
  multi/features/wavelength_dependence/modeling.py (mirrors multi/modeling.py),
  so the script simulates its dataset on first run instead of FileNotFoundError.
- Drop the NEEDS_FIX marker from config/build/no_run.yaml. The marker's stated
  "FitException" was actually a SersicCore ZeroDivisionError on effective_radius=0
  (test-mode median of the wavelength*m+c relation), fixed upstream in
  PyAutoGalaxy#515; with that fix + auto-simulate the script runs green from clean.
- Regenerate the notebook.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 21, 2026
@Jammy2211
Jammy2211 merged commit 9dcc015 into main Jul 21, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/sersic-core-effective-radius-zero branch July 21, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant