Skip to content

Commit 87262e7

Browse files
committed
apply formatting and add a version to pyproject
1 parent f85082b commit 87262e7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

httomolibgpu/misc/morph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def data_resampler(
124124
Returns:
125125
cp.ndarray: Up/Down-scaled 3D cupy array
126126
"""
127-
if cupywrapper.cupy_run:
127+
if cupywrapper.cupy_run:
128128
return __data_resampler(data, newshape, axis, interpolation)
129129
else:
130130
print("data_resampler won't be executed because CuPy is not installed")
@@ -136,7 +136,7 @@ def __data_resampler(
136136
data: cp.ndarray, newshape: list, axis: int = 1, interpolation: str = "linear"
137137
) -> cp.ndarray:
138138
from cupyx.scipy.interpolate import interpn
139-
139+
140140
if data.ndim != 3:
141141
raise ValueError("only 3D data is supported")
142142

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dev_template = "{tag}"
2020

2121
[project]
2222
name = "httomolibgpu"
23+
version = "2.1"
2324
description = "Commonly used tomography data processing methods at DLS."
2425
readme = "README.rst"
2526
license = {text = "BSD-3-Clause"}

0 commit comments

Comments
 (0)