Skip to content

Fix the grid due to apodization#256

Merged
jmbhughes merged 11 commits into
mainfrom
apodize
Jun 11, 2026
Merged

Fix the grid due to apodization#256
jmbhughes merged 11 commits into
mainfrom
apodize

Conversation

@jmbhughes

Copy link
Copy Markdown
Member

We discovered a grid was getting induced in the corrected images. This fixes that.

@jmbhughes jmbhughes self-assigned this May 28, 2026
@jmbhughes jmbhughes requested a review from svank May 28, 2026 15:01
@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.43%. Comparing base (981f3aa) to head (40ac71f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #256      +/-   ##
==========================================
- Coverage   81.54%   81.43%   -0.12%     
==========================================
  Files           8        8              
  Lines         672      668       -4     
==========================================
- Hits          548      544       -4     
  Misses        124      124              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jmbhughes jmbhughes marked this pull request as draft June 3, 2026 22:07
@jmbhughes jmbhughes changed the title Apodize once instead of half twice Fix the grid due to apodization Jun 4, 2026
@jmbhughes

Copy link
Copy Markdown
Member Author

pre-commit.ci autofix

@jmbhughes jmbhughes marked this pull request as ready for review June 4, 2026 16:44
patches = patches * apodization_window
patches = scipy.fft.fft2(full_apodization_window * patches, workers=8)
patches = np.abs(scipy.fft.ifft2(patches * self._transfer_kernel.values, workers=8))
patches = patches * full_apodization_window

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.

The full window on both sides of the FFT?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep that's what we decided works best

@jmbhughes jmbhughes merged commit 070e12d into main Jun 11, 2026
14 checks passed
@jmbhughes jmbhughes deleted the apodize branch June 11, 2026 15:07
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.

3 participants