Skip to content

Commit fab1c80

Browse files
authored
Merge pull request #86 from DiamondLightSource/paganinsavu
adding paganin_filter_savu_legacy memory reference
2 parents 00db69a + 4debdb5 commit fab1c80

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

httomo_backends/methods_database/packages/backends/httomolibgpu/httomolibgpu.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ prep:
9797
memory_gpu:
9898
multiplier: None
9999
method: module
100+
paganin_filter_savu_legacy:
101+
pattern: projection
102+
output_dims_change: False
103+
implementation: gpu_cupy
104+
save_result_default: False
105+
padding: False
106+
memory_gpu:
107+
multiplier: None
108+
method: module
100109
alignment:
101110
distortion_correction_proj_discorpy:
102111
pattern: projection

httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/prep/phase.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,18 @@
2727

2828
__all__ = [
2929
"_calc_memory_bytes_paganin_filter",
30+
"_calc_memory_bytes_paganin_filter_savu_legacy",
3031
]
3132

3233

34+
def _calc_memory_bytes_paganin_filter_savu_legacy(
35+
non_slice_dims_shape: Tuple[int, int],
36+
dtype: np.dtype,
37+
**kwargs,
38+
) -> Tuple[int, int]:
39+
return _calc_memory_bytes_paganin_filter(non_slice_dims_shape, dtype, **kwargs)
40+
41+
3342
def _calc_memory_bytes_paganin_filter(
3443
non_slice_dims_shape: Tuple[int, int],
3544
dtype: np.dtype,

0 commit comments

Comments
 (0)