Skip to content

Commit

Permalink
apply formatting and add a version to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed Aug 27, 2024
1 parent f85082b commit 87262e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httomolibgpu/misc/morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def data_resampler(
Returns:
cp.ndarray: Up/Down-scaled 3D cupy array
"""
if cupywrapper.cupy_run:
if cupywrapper.cupy_run:
return __data_resampler(data, newshape, axis, interpolation)
else:
print("data_resampler won't be executed because CuPy is not installed")
Expand All @@ -136,7 +136,7 @@ def __data_resampler(
data: cp.ndarray, newshape: list, axis: int = 1, interpolation: str = "linear"
) -> cp.ndarray:
from cupyx.scipy.interpolate import interpn

if data.ndim != 3:
raise ValueError("only 3D data is supported")

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dev_template = "{tag}"

[project]
name = "httomolibgpu"
version = "2.1"
description = "Commonly used tomography data processing methods at DLS."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
Expand Down

0 comments on commit 87262e7

Please sign in to comment.