Commit fee1a43
Fix subplot_of_mapper crash on interferometer data_subtracted
Panel 0 of `subplot_of_mapper` and `subplot_mappings` passed
`inversion.data_subtracted_dict[mapper]` directly to `plot_array`, which
expects a 2D array. For interferometer fits the entry is `Visibilities`
(1D), so `plot_array`'s `array.shape[:2]` unpack failed.
Mirror the existing `Visibilities` check in panels 1-3: when the dict
entry is `Visibilities`, transform to a 2D dirty image via
`inversion.transformer.image_from(...)` (same mechanism as
`FitInterferometer.dirty_residual_map`). Imaging path unchanged.1 parent ae43ae1 commit fee1a43
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | | - | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
289 | 299 | | |
290 | | - | |
| 300 | + | |
291 | 301 | | |
292 | 302 | | |
293 | 303 | | |
| |||
0 commit comments