Skip to content

Commit

Permalink
fixed eiger reading for python3 where zip returns a generator, see ht…
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Lhermitte committed Aug 11, 2015
1 parent 05ad1f0 commit 668449b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chxtools/pims_readers/eiger.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def __init__(self, master_filepath):
# Table of Contents return a tuple:
# self._toc[5] -> [which file, which element in that file]
self._toc = np.concatenate(
[zip(i*np.ones(length, dtype=int),
np.arange(length, dtype=int))
[list(zip(i*np.ones(length, dtype=int),
np.arange(length, dtype=int)))
for i, length in enumerate(lengths)])

def get_frame(self, i):
Expand Down

0 comments on commit 668449b

Please sign in to comment.