Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed May 13, 2021
1 parent e9f3225 commit 3ea94b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions idi/util/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def _std(values_ptr, len_values, result, data):
res = ~res
return res


def std(image, size):
"""
a moving std calculation on an nd image
Expand All @@ -58,6 +59,7 @@ def _std(values_ptr, len_values, result):
std = np.sqrt((accumx2 / len_values) - mean ** 2)
result[0] = std
return 1

res = ndi.generic_filter(image, LowLevelCallable(_std.ctypes), size)
return res

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def configuration():
basedirs = list(
OrderedDict.fromkeys(
realpath(p)
for p in [join(dirname(numpy.__file__), *(4 * [".."])), join(dirname(numpy.__file__), *(3 * [".."])), prefix,]
for p in [join(dirname(numpy.__file__), *(4 * [".."])), join(dirname(numpy.__file__), *(3 * [".."])), prefix]
+ [join(*p, *(2 * [".."])) for p in [p.split("site-packages")[:-1] for p in path] if p]
+ [join(*p, "..") for p in [p.split("site-packages")[:-1] for p in path] if p]
+ [join(p, "..") for p in environ["PATH"].split(":")]
Expand Down Expand Up @@ -139,7 +139,7 @@ def setup_package():
description="idi simulation and reconstruction",
platforms=["Linux", "Mac OS-X"],
python_requires=">=3.6",
install_requires=["numpy", "cython", "numba", "numexpr", "scipy", "jinja2", "mkl-service", "matplotlib", "h5py", "mkl", "mkl-include",],
install_requires=["numpy", "cython", "numba", "numexpr", "scipy", "jinja2", "mkl-service", "matplotlib", "h5py", "mkl", "mkl-include"],
package_data={"": ["*.cu"]},
scripts=["scripts/idi_sim.py", "scripts/idi_simrecon.py"],
test_suite="tests",
Expand Down

0 comments on commit 3ea94b9

Please sign in to comment.