Commit a4e6561
feat: oversampled PSF blurred images via operate/image consumer switch (#480)
Implements phase 2c of the oversampled-PSF design (PyAutoArray#353 §5):
when psf.convolve_over_sample_size > 1, blurred_image_2d_from,
blurred_image_2d_list_from and galaxy_blurred_image_2d_dict_from evaluate
the image and blurring image on the grids' over-sampled coordinates
(grid.over_sampled is a Grid2DIrregular in per-pixel sub-block order, which
the over_sample decorator passes through unbinned — the oversampled
Convolver's input format) and convolve at the fine resolution.
No signature changes: the Grid2DIrregular pass-through replaces the
design's binned= kwarg threading, so Galaxy/Galaxies/Tracer image_2d_from
chains are untouched and Tracer inherits the behaviour via OperateImage.
padded/unmasked visualization images stay at image resolution (documented
limitation, revisited in the docs phase). s=1 paths byte-identical.
Tests: s=2 through operate/image.py equals the direct phase-2a Convolver
call to 1e-14; list/dict variants consistent with the scalar path.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 93c5172 commit a4e6561
2 files changed
Lines changed: 154 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 132 | + | |
134 | 133 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
141 | 166 | | |
142 | 167 | | |
143 | 168 | | |
| |||
294 | 319 | | |
295 | 320 | | |
296 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
297 | 329 | | |
298 | | - | |
| 330 | + | |
299 | 331 | | |
300 | 332 | | |
301 | | - | |
| 333 | + | |
302 | 334 | | |
303 | 335 | | |
304 | 336 | | |
| |||
307 | 339 | | |
308 | 340 | | |
309 | 341 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
315 | 354 | | |
316 | 355 | | |
317 | 356 | | |
| |||
444 | 483 | | |
445 | 484 | | |
446 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
447 | 493 | | |
448 | | - | |
| 494 | + | |
449 | 495 | | |
450 | 496 | | |
451 | 497 | | |
452 | | - | |
| 498 | + | |
453 | 499 | | |
454 | 500 | | |
455 | 501 | | |
| |||
467 | 513 | | |
468 | 514 | | |
469 | 515 | | |
| 516 | + | |
470 | 517 | | |
471 | 518 | | |
472 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
0 commit comments