Skip to content

Commit b6facd6

Browse files
committed
Use tuples instead of argument expansion
Some versions of Python don't allow this argument expansion. Signed-off-by: Patrick Avery <[email protected]>
1 parent e6905ab commit b6facd6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hexrd/imageseries/load/hdf5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __getitem__(self, key):
6767
if not isinstance(key, int):
6868
# FIXME: we do not yet support fancy indexing here.
6969
# Fully expand the array then apply the fancy indexing.
70-
return self[key[0]][*key[1:]]
70+
return self[key[0]][tuple(key[1:])]
7171

7272
if self._ndim == 2:
7373
if key != 0:

hexrd/imageseries/load/imagefiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __getitem__(self, key):
4848
if not isinstance(key, int):
4949
# FIXME: we do not yet support fancy indexing here.
5050
# Fully expand the array then apply the fancy indexing.
51-
return self[key[0]][*key[1:]]
51+
return self[key[0]][tuple(key[1:])]
5252

5353
if self.singleframes:
5454
frame = None

hexrd/imageseries/load/rawimage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __getitem__(self, key):
114114
if not isinstance(key, int):
115115
# FIXME: we do not yet support fancy indexing here.
116116
# Fully expand the array then apply the fancy indexing.
117-
return self[key[0]][*key[1:]]
117+
return self[key[0]][tuple(key[1:])]
118118

119119
count = key * self._frame_bytes + self.skipbytes
120120

0 commit comments

Comments
 (0)