Skip to content

Commit ec47afb

Browse files
committed
adding corrections and reformatting
1 parent a7b97db commit ec47afb

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

httomolibgpu/misc/rescale.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from httomolibgpu import cupywrapper
2525

2626
cp = cupywrapper.cp
27-
cupy_run = cupywrapper.cupy_run
2827

2928
from typing import Literal, Optional, Tuple, Union
3029

httomolibgpu/misc/supp_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def data_checker(
162162
) -> bool:
163163
"""
164164
Function that performs the variety of checks on input data, in some cases also correct the data and prints warnings.
165-
Currently it checks for: the presence of infs and nans in data.
165+
Currently it checks for: the presence of infs and nans in data.
166166
167167
Parameters
168168
----------

tests/test_misc/test_rescale.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ def test_rescale_double_offset_min_percentage(bits: Literal[8, 16, 32]):
9797

9898

9999
def test_tomo_data_scale(data):
100-
data_cpu = data.get()
101100
res_dev = rescale_to_int(
102101
data.astype(cp.float32), perc_range_min=10, perc_range_max=90, bits=8
103102
)
104103
res = res_dev.get()
105-
assert res_dev.dtype == np.uint8
104+
assert res.dtype == np.uint8
106105

107106

108107
@pytest.mark.perf

0 commit comments

Comments
 (0)