[python-dtcwt] 12/497: tag transform-heavy tests with 'transform' attribute
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.
commit c88f1179c71ec91fc8e27d6c6cb04aab24320ced
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Wed Aug 7 09:38:56 2013 +0100
tag transform-heavy tests with 'transform' attribute
---
tests/testifm2.py | 3 +++
tests/testxfm2.py | 2 ++
2 files changed, 5 insertions(+)
diff --git a/tests/testifm2.py b/tests/testifm2.py
index 7d0409c..68ff2e6 100644
--- a/tests/testifm2.py
+++ b/tests/testifm2.py
@@ -1,5 +1,6 @@
import os
from nose.tools import raises
+from nose.plugins.attrib import attr
import numpy as np
from dtcwt import dtwavexfm2, dtwaveifm2
@@ -17,11 +18,13 @@ def test_lena_loaded():
assert lena.max() <= 1
assert lena.dtype == np.float32
+ at attr('transform')
def test_reconstruct():
# Reconstruction up to tolerance
lena_recon = dtwaveifm2(Yl, Yh)
assert np.all(np.abs(lena_recon - lena) < 1e-3)
+ at attr('transform')
def test_reconstruct_ctop():
# Reconstruction up to tolerance
lena_recon = dtwaveifm2(Yl_crop, Yh_crop)[:lena_crop.shape[0], :lena_crop.shape[1]]
diff --git a/tests/testxfm2.py b/tests/testxfm2.py
index 37f8eb2..0b0a31c 100644
--- a/tests/testxfm2.py
+++ b/tests/testxfm2.py
@@ -1,5 +1,6 @@
import os
from nose.tools import raises
+from nose.plugins.attrib import attr
import numpy as np
from dtcwt import dtwavexfm2
@@ -14,6 +15,7 @@ def test_lena_loaded():
assert lena.max() <= 1
assert lena.dtype == np.float32
+ at attr('transform')
def test_simple():
Yl, Yh = dtwavexfm2(lena)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list