summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2019-11-18 11:43:43 +0100
committerPicca Frédéric-Emmanuel <picca@debian.org>2019-11-24 09:52:19 +0100
commit66575c924f10861550055a63a246328b41016c1c (patch)
treeed41bf855929f25d74e99232bf6707ee59eec1bf
parent473be9ed4246b311e30b38eac870d65f8a4ccf7b (diff)
Added ec7a2d1 commit from upstream in order to fix autopkgtest
Gbp-Pq: Name 0005-Added-ec7a2d1-commit-from-upstream-in-order-to-fix-a.patch
-rw-r--r--fabio/numpyimage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fabio/numpyimage.py b/fabio/numpyimage.py
index 52bc500..33367e3 100644
--- a/fabio/numpyimage.py
+++ b/fabio/numpyimage.py
@@ -158,7 +158,7 @@ class NumpyImage(fabioimage.FabioImage):
self._readheader(infile)
# read the image data
- self.dataset = numpy.load(infile)
+ self.dataset = numpy.load(infile, allow_pickle=False)
self.slice_dataset(frame)
return self
@@ -168,6 +168,8 @@ class NumpyImage(fabioimage.FabioImage):
:param fname: name of the file
"""
+ if self.dataset is None and self.data is not None:
+ self.dataset = self.data
numpy.save(fname, self.dataset)
def _get_frame(self, num):