Skip to content

Commit

Permalink
Merge pull request #4195 from tacaswell/mnt/cython_long_removal
Browse files Browse the repository at this point in the history
Thanks!

CI failures in this PR are fixed by PR #4193
  • Loading branch information
t20100 authored Nov 12, 2024
2 parents 7b652bd + 05d10e2 commit 5794746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/silx/io/specfile.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class MCA(object):
if not len(self):
raise IndexError("No MCA spectrum found in this scan")

if isinstance(key, (int, long)):
if isinstance(key, int):
mca_index = key
# allow negative index, like lists
if mca_index < 0:
Expand Down

0 comments on commit 5794746

Please sign in to comment.