Commit db0dc30
fix: drop AdaptImages single-pixelated-galaxy fallback in lens.to_inversion
Replaces the autolens/lens/to_inversion.py:280-290 workaround (search
dict keys for has(cls=Pixelization) when galaxies_with_pixelization_list
has length 1) with the new AdaptImages.image_for_galaxy helper from
PyAutoGalaxy. Per-plane GalaxiesToInversion now passes
path_galaxies=tracer.galaxies so the autogalaxy-side positional lookup
sees the full galaxy list rather than a per-plane subset. Analysis.
fit_from passes galaxies=tracer.galaxies into adapt_images_via_instance_from.
Depends on PyAutoGalaxy PR (image_for_galaxy + path_galaxies). Merge
order: PyAutoGalaxy first.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a409055 commit db0dc30
3 files changed
Lines changed: 12 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
| 273 | + | |
276 | 274 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
291 | 279 | | |
292 | 280 | | |
293 | 281 | | |
| |||
330 | 318 | | |
331 | 319 | | |
332 | 320 | | |
| 321 | + | |
333 | 322 | | |
334 | 323 | | |
335 | 324 | | |
| |||
0 commit comments