diff --git a/scripts/misc/likelihood_breakdown/test/test_xla_attribution.py b/scripts/misc/likelihood_breakdown/test/test_xla_attribution.py index 070fe67a0..4e2f92707 100644 --- a/scripts/misc/likelihood_breakdown/test/test_xla_attribution.py +++ b/scripts/misc/likelihood_breakdown/test/test_xla_attribution.py @@ -869,7 +869,7 @@ def test_a_harness_psf_candidate_kernel_is_the_mapping_matrix_convolution(): def test_a_candidate_calling_back_into_the_real_space_path_is_the_mapping_convolution(): - """``real_space_direct`` runs convolver.py:1348+, outside the 1086-1300 range.""" + """``real_space_direct`` runs convolver.py:1409+, outside the 1153-1330 range.""" frames = ( xa.Frame( file=_CONVOLVER, function="convolved_mapping_matrix_via_real_space_from", line=1419 diff --git a/scripts/misc/likelihood_breakdown/xla_attribution.py b/scripts/misc/likelihood_breakdown/xla_attribution.py index 9ac2e030e..72ecc30d1 100644 --- a/scripts/misc/likelihood_breakdown/xla_attribution.py +++ b/scripts/misc/likelihood_breakdown/xla_attribution.py @@ -776,11 +776,11 @@ def satisfied_by(self, frames: Sequence[Frame]) -> bool: "curvature_matrix_F", _ARRAY + "inversion/inversion/imaging/inversion_imaging_util.py" ), # --- PSF convolution: the image, and the mapping-matrix cube ------------- - # The FFT body (convolver.py 555-607) is shared; the caller says which of the + # The FFT body (convolver.py 616-666) is shared; the caller says which of the # two convolutions it is, exactly as the log dets do. - # ``Convolver.convolved_mapping_matrix_from`` (1086-1300) convolves the + # ``Convolver.convolved_mapping_matrix_from`` (1153-1330) convolves the # mapping-matrix CUBE; ``convolved_image_from`` / the over-sampled image - # helpers (520-700, 1000-1085) convolve the 2D image. Both reach the same + # helpers (583-729, 1006-1151) convolve the 2D image. Both reach the same # rfft2/irfft2, so which one it is comes from the caller, exactly as the two # log determinants do. # Phase 3 (#295): the candidate convolutions are HARNESS code @@ -790,13 +790,13 @@ def satisfied_by(self, frames: Sequence[Frame]) -> bool: # convolver.py (``real_space_direct``, ``mp_cube_c64``) has its innermost frame # in convolver.py and resolves there through the ``requires`` rules below. StageRule("psf_convolution_mapping_matrix", _PSF_CUBE_HARNESS), - StageRule("psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, (1086, 1300)), - StageRule("psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, (632, 642)), - StageRule("psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, (670, 691)), + StageRule("psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, (1153, 1330)), + StageRule("psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, (693, 702)), + StageRule("psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, (731, 750)), StageRule( "psf_convolution_mapping_matrix", _ARRAY + _CONVOLVER, - requires=(_ARRAY + _CONVOLVER, (1086, 1300)), + requires=(_ARRAY + _CONVOLVER, (1153, 1330)), ), StageRule( "psf_convolution_mapping_matrix", @@ -1624,8 +1624,8 @@ def _written_at_convolution_source(i: Instruction) -> bool: def _is_mapping_convolution(i: Instruction) -> bool: return ( _called_from(i, _ARRAY + _IMAGING_ABSTRACT, (119, 150)) - or _called_from(i, _ARRAY + _CONVOLVER, (670, 691)) - or _called_from(i, _ARRAY + _CONVOLVER, (1086, 1300)) + or _called_from(i, _ARRAY + _CONVOLVER, (731, 750)) + or _called_from(i, _ARRAY + _CONVOLVER, (1153, 1330)) or _called_from(i, _PSF_CUBE_HARNESS, (1, 10**6)) ) @@ -1774,9 +1774,9 @@ class CensusAnchor: #: rows phase 3 reads; the ``abstract.py`` anchors back the phase-1 curvature and #: gather rows (which is why phase 2 excluded the whole census when they moved). CENSUS_ANCHORS: tuple[CensusAnchor, ...] = ( - CensusAnchor(_PSF_CENSUS_ROWS, _CONVOLVER, "convolved_mapping_matrix_from", (1086, 1300)), + CensusAnchor(_PSF_CENSUS_ROWS, _CONVOLVER, "convolved_mapping_matrix_from", (1153, 1330)), CensusAnchor( - _PSF_CENSUS_ROWS, _CONVOLVER, "_convolved_mapping_matrix_over_sampled_jax_from", (670, 691) + _PSF_CENSUS_ROWS, _CONVOLVER, "_convolved_mapping_matrix_over_sampled_jax_from", (731, 750) ), CensusAnchor(_PSF_CENSUS_ROWS, _IMAGING_ABSTRACT, "operated_mapping_matrix_list", (119, 150)), CensusAnchor(