Commit 5250d80
fix(interferometer): resample non-PD inversion instead of crashing the search (#607)
AnalysisInterferometer.log_likelihood_function returned the fit figure_of_merit
unwrapped, so a non-positive-definite inversion matrix at a sampled model raised
a raw numpy.linalg.LinAlgError (Cholesky log-det, abstract.py:743) that
propagated through Nautilus and killed the whole search on the NumPy path
(release profile PYAUTO_DISABLE_JAX=1). The JAX path returns NaN and resamples,
masking it. Mirror the imaging analysis (imaging/model/analysis.py:132-144):
split on _use_jax, wrap the NumPy path in try/except -> af.exc.FitException,
which the fitness resamples. Apply the same guard to the point-source analysis,
which had the identical unguarded return.
Resolves release-validation tail item G (PyAutoHeart#72). Not jax-0.10.2 drift.
Co-authored-by: Jammy2211 <JNightingale2211@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 242e54e commit 5250d80
2 files changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
0 commit comments