Commit ec6b5943 authored by Laurent Claustre's avatar Laurent Claustre

Merge branch 'xrange' into 'master'

xrange -> range for python 3 support

See merge request !31
parents 569a0239 1e1c13f4
Pipeline #10735 passed with stages
in 1 minute and 54 seconds
...@@ -1731,7 +1731,7 @@ class LimaCCDs(PyTango.Device_4Impl) : ...@@ -1731,7 +1731,7 @@ class LimaCCDs(PyTango.Device_4Impl) :
@Core.DEB_MEMBER_FUNCT @Core.DEB_MEMBER_FUNCT
def _image_2_data_array(self, data, category): def _image_2_data_array(self, data, category):
d = data.buffer d = data.buffer
s = [d.shape[i] for i in xrange(len(d.shape) - 1, -1, -1)] s = [d.shape[i] for i in range(len(d.shape) - 1, -1, -1)]
if (category == self.DataArrayCategory.ImageStack) and (len(s) == 2): if (category == self.DataArrayCategory.ImageStack) and (len(s) == 2):
s += [1] s += [1]
nbDim = len(s) nbDim = len(s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment