10000 fixed edge case on python 2.7 + Linux · larray-project/larray@ccf364c · GitHub
[go: up one dir, main page]

Skip to content

Commit ccf364c

Browse files
committed
fixed edge case on python 2.7 + Linux
1 parent 3a815d3 commit ccf364c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/core/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2830,7 +2830,7 @@ def _key_to_raw_and_axes(self, key, collapse_slices=False, translate_key=True):
28302830

28312831
# transform non-Array advanced keys (list and ndarray) to Array
28322832
def to_la_ikey(axis, axis_key):
2833-
if isinstance(axis_key, (int, np.integer, slice, Array)):
2833+
if isinstance(axis_key, (int, long, np.integer, slice, Array)):
28342834
return axis_key
28352835
else:
28362836
assert isinstance(axis_key, (list, np.ndarray))

0 commit comments

Comments
 (0)
0