Skip to content

Commit

Permalink
Merge pull request #2358 from kif/2357_use_local_image
Browse files Browse the repository at this point in the history
Use local image rather than the one from scipy...
  • Loading branch information
kif authored Dec 18, 2024
2 parents 793d9f2 + b5abd7d commit 6157547
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/pyFAI/test/test_convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@
__contact__ = "Jérôme.Kieffer@esrf.fr"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
__date__ = "16/10/2024"
__date__ = "14/12/2024"

import unittest
import numpy
import logging
logger = logging.getLogger(__name__)
import fabio
from .utilstest import UtilsTest
from ..ext import _convolution
import scipy.ndimage
import scipy.misc
import scipy.signal


Expand All @@ -56,10 +57,7 @@ def setUp(self):
else:
self.gauss = scipy.signal.gaussian(self.width, self.sigma)
self.gauss /= self.gauss.sum()
if "ascent" in dir(scipy.misc):
self.lena = scipy.misc.ascent().astype("float32")
else:
self.lena = scipy.misc.lena().astype("float32")
self.lena = fabio.open(UtilsTest.getimage("mock.tif")).data.astype("float32")

def tearDown(self):
unittest.TestCase.tearDown(self)
Expand Down

0 comments on commit 6157547

Please sign in to comment.