Skip to content

Paganin filter: padding_method options - #245

Merged
dkazanc merged 2 commits into
mainfrom
paganin-padding-radway-63
Jan 13, 2026
Merged

Paganin filter: padding_method options#245
dkazanc merged 2 commits into
mainfrom
paganin-padding-radway-63

Conversation

@mfep

@mfep mfep commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator

Added padding_method parameter to paganin_filter. Options:

  • next_power_of_2 (default, original method): Pads data to the size that is the next power of 2
  • next_fast_length: Pads data to the next size that is fast for FFT. This can be zero padding. Uses less memory than next_power_of_2
  • Integer: specifies padding extent in pixels.

Updated tests and zenodo tests.

Fixes: Paganin filter padding options

@mfep mfep self-assigned this Jan 5, 2026
@mfep
mfep requested a review from dkazanc January 5, 2026 13:29
Comment thread httomolibgpu/prep/phase.py Outdated
Comment thread httomolibgpu/prep/phase.py
@mfep
mfep force-pushed the paganin-padding-radway-63 branch from 99f3038 to 49ae0af Compare January 12, 2026 09:37
@mfep
mfep force-pushed the paganin-padding-radway-63 branch from 49ae0af to 30a0b98 Compare January 12, 2026 12:02
@dkazanc
dkazanc merged commit 4f64004 into main Jan 13, 2026
2 checks passed
@dkazanc
dkazanc deleted the paganin-padding-radway-63 branch January 13, 2026 10:13
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