[pyfai] 05/10: remove the averageImage generated file

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Mon Jan 13 23:05:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch experimental
in repository pyfai.

commit 19caee67ce0ceef6988f05b857d2060613541011
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Sat Dec 28 13:53:27 2013 +0100

    remove the averageImage generated file
---
 ...warded-upstream-fix-the-averageImage-test.patch | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/0003-forwarded-upstream-fix-the-averageImage-test.patch b/debian/patches/0003-forwarded-upstream-fix-the-averageImage-test.patch
new file mode 100644
index 0000000..ee66dde
--- /dev/null
+++ b/debian/patches/0003-forwarded-upstream-fix-the-averageImage-test.patch
@@ -0,0 +1,24 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca at debian.org>
+Date: Sat, 28 Dec 2013 13:52:38 +0100
+Subject: forwarded upstream fix the averageImage test
+
+remove the generated file during the test
+---
+ test/testUtils.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/test/testUtils.py b/test/testUtils.py
+index e32a924..c498694 100755
+--- a/test/testUtils.py
++++ b/test/testUtils.py
+@@ -99,7 +99,9 @@ class test_utils(unittest.TestCase):
+         self.assert_(abs(self.dark - six).max() < 1e-4, "data are the same: test threshold")
+ 
+         seven = pyFAI.utils.averageImages([self.raw], darks=[self.dark], flats=[self.flat], threshold=0)
+-        self.assert_(abs(numpy.ones_like(self.dark) - fabio.open(seven).data).mean() < 1e-2, "averageImages")
++        seven_data = fabio.open(seven).data
++        os.remove(seven)
++        self.assert_(abs(numpy.ones_like(self.dark) - seven_data).mean() < 1e-2, "averageImages")
+ 
+     def test_shift(self):
+         """
diff --git a/debian/patches/series b/debian/patches/series
index cfbd264..e83d8b5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-feature-forwarded-setup-teardown-to-remove-temporary.patch
 0002-feature-forwareded-do-not-alter-the-original-poni-fi.patch
+0003-forwarded-upstream-fix-the-averageImage-test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfai.git



More information about the debian-science-commits mailing list