Skip to content

align KNL Morlet wav build with the one in FFT#48

Merged
pablo-richard merged 1 commit into
masterfrom
test-power-law-impact-on-ST-mismatch
Jun 4, 2026
Merged

align KNL Morlet wav build with the one in FFT#48
pablo-richard merged 1 commit into
masterfrom
test-power-law-impact-on-ST-mismatch

Conversation

@pablo-richard

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 10:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors 2D kernel-based wavelet construction in STL_2D_Kernel_Torch to build spatial-domain kernels by taking an IFFT of the corresponding Fourier-domain wavelet banks, aligning the “Morlet” kernel path with the FFT implementation. It also refreshes several documentation/certification notebooks to reflect re-executed outputs.

Changes:

  • Refactor kernel wavelet construction into _build_wavelet_kernel_from_ifft_crop(...) and reuse it for both bump-steerable and Morlet wavelets.
  • Switch Morlet kernel construction to be derived from WaveletOperator2D_FFT_torch.gaussian_bank via IFFT + crop.
  • Update multiple notebooks’ stored outputs/execution counts/timings after reruns.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
STL_main/STL_2D_Kernel_Torch.py Refactors wavelet-kernel construction and aligns Morlet kernel build with FFT wavelet banks.
tests/certification_notebooks/2D_Kernel_Torch/Certification_Notebook_2D_kernel.ipynb Updated stored execution metadata/outputs after rerun.
docs/user_notebook/synthesis_from_stats.ipynb Updated stored execution outputs/timings.
docs/user_notebook/synthesis_from_maps.ipynb Updated stored execution metadata/outputs/timings.
docs/user_notebook/scattering_stats.ipynb Updated stored execution metadata (execution counts).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -610,81 +605,15 @@ def _build_bump_steerable_wavelet_kernel(self):
kernel = kernel.to(device=self.device)
Comment on lines +599 to 600
kernel = fft_wavelet_builder(self.J, self.L, size=(N, N))[0] # [L, N, N]
kernel = torch.fft.fftshift(torch.fft.ifft2(kernel, dim=(-2, -1)), dim=(-2, -1))
@pablo-richard pablo-richard merged commit 175a94b into master Jun 4, 2026
5 checks passed
@pablo-richard pablo-richard deleted the test-power-law-impact-on-ST-mismatch branch June 4, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants