We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0075e9 commit 9fe53e6Copy full SHA for 9fe53e6
httomolibgpu/prep/phase.py
@@ -38,7 +38,7 @@
38
fftshift = Mock()
39
40
from numpy import float32
41
-from typing import Union
+from typing import Tuple
42
import math
43
44
__all__ = [
@@ -377,7 +377,9 @@ def _calculate_pad_size(datashape: tuple) -> list:
377
return pad_list
378
379
380
-def _pad_projections_to_second_power(tomo: cp.ndarray) -> Union[cp.ndarray, tuple]:
+def _pad_projections_to_second_power(
381
+ tomo: cp.ndarray,
382
+) -> Tuple[cp.ndarray, Tuple[int, int]]:
383
"""
384
Performs padding of each projection to the next power of 2.
385
If the shape is not even we also care of that before padding.
0 commit comments