Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a decorator for skipping test if openmp is not available #1267

Merged
merged 1 commit into from Jun 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions dipy/denoise/tests/test_nlmeans.py
Expand Up @@ -6,7 +6,7 @@
assert_raises)
from dipy.denoise.nlmeans import nlmeans
from dipy.denoise.denspeed import (add_padding_reflection, remove_padding)
from dipy.utils.omp import cpu_count
from dipy.utils.omp import cpu_count, have_openmp
from time import time


Expand Down Expand Up @@ -89,7 +89,7 @@ def test_nlmeans_dtype():
S0n = nlmeans(S0, sigma=np.ones((20, 20, 20)), mask=mask, rician=True)
assert_equal(S0.dtype, S0n.dtype)


@np.testing.dec.skipif(not have_openmp)
def test_nlmeans_4d_3dsigma_and_threads():
# Input is 4D data and 3D sigma
data = np.ones((50, 50, 50, 5))
Expand Down