summaryrefslogtreecommitdiff
path: root/silx/third_party/EdfFile.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/third_party/EdfFile.py')
-rw-r--r--silx/third_party/EdfFile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/silx/third_party/EdfFile.py b/silx/third_party/EdfFile.py
index 8a08c20..aeb9e54 100644
--- a/silx/third_party/EdfFile.py
+++ b/silx/third_party/EdfFile.py
@@ -1,6 +1,6 @@
# /*##########################################################################
#
-# Copyright (c) 2004-2017 European Synchrotron Radiation Facility
+# Copyright (c) 2004-2018 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF by the Software group.
@@ -689,7 +689,7 @@ class EdfFile(object):
if len(Position) != self.Images[Index].NumDim:
raise ValueError("EdfFile: coordinate with wrong dimension ")
- size_pixel = self.__GetSizeNumpyType__(self.__GetDefaultNumpyType__(self.Images[Index].DataType), index=Index)
+ size_pixel = self.__GetSizeNumpyType__(self.__GetDefaultNumpyType__(self.Images[Index].DataType, index=Index))
offset = Position[0] * size_pixel
if self.Images[Index].NumDim > 1:
size_row = size_pixel * self.Images[Index].Dim1