Closed naegelejd closed 10 years ago
Hm! Thanks for reporting this -- I'm a bit swamped with other projects at the moment but I'll try to look at it soon.
In my initial testing, my_range[i]
does seem to fix it. Why did I ever use my_range?
I'll need to think a little more before I push this one out.
I've finally come back to this, and merged this change in 43dedbefc08fe86d5e7d98e8346ed091c6f750e1.
Thanks!
From SHA: b957a03815c0f68f3e1d471cd6766d586bcce8e7, line 251 of readers.py,
__running_counts
method ofAcqReader
class.is invalid in NumPy 1.7 because
my_range
is not the same shape as an element ofcounts
.With an input of
sample_indexes = np.array([0, 1, 2])
to the__running_counts
method, in version of NumPy < 1.7,counts = np.array([0, 0, 0])
. In NumPy 1.7, assigning tocounts
results in:I'm not actually sure, but should it be
? With the same input for
sample_indexes
,counts = np.array([0, 1, 2])
, which would be different behavior.