[python-dtcwt] 299/497: tests: add lena loading function
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:16 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 e02ab9883fed0e587282da0cc660b12a15e972a3
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Fri Jan 31 14:29:00 2014 +0000
tests: add lena loading function
---
tests/datasets.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/datasets.py b/tests/datasets.py
index 617ca66..65ccf11 100644
--- a/tests/datasets.py
+++ b/tests/datasets.py
@@ -5,3 +5,7 @@ def regframes(name):
"""Load the *name* registration dataset and return source and reference frame."""
frames = np.load(os.path.join(os.path.dirname(__file__), name + '.npz'))
return frames['f1'], frames['f2']
+
+def lena():
+ """Return Lena in all her glory."""
+ return np.load(os.path.join(os.path.dirname(__file__), 'lena.npz'))['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