Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error generating ISIs #1

Open
jsseely opened this issue Mar 13, 2016 · 1 comment
Open

error generating ISIs #1

jsseely opened this issue Mar 13, 2016 · 1 comment

Comments

@jsseely
Copy link

jsseely commented Mar 13, 2016

When generating the ISIs in the ephys-traces notebook, this command

units = units.join(pd.DataFrame({'rateFA':[getSpikeISI(x,threshFA)[3] for x in units.sourceId]}))

returns this error

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-37-5c33675b52f6> in <module>()
----> 1 units = units.join(pd.DataFrame({'rateFA':[getSpikeISI(x,threshFA)[3] for x in units.sourceId]}))

<ipython-input-35-ba0326ca444b> in getSpikeISI(sourceId, threshFA)
      7     peakTimeISI = timesISI[ISI.argmax()]
      8     timesISI = timesISI[:-1]
----> 9     timesISI = np.concatenate((-np.fliplr([timesISI])[0],timesISI[1:]),axis = 1)
     10     ISI = np.concatenate((np.fliplr([ISI])[0],ISI[1:]),axis = 1)
     11     return timesISI, ISI, peakTimeISI, rateFA

IndexError: axis 1 out of bounds [0, 1)

This is using pandas 0.18.0 and numpy 1.10.4, which are slightly more recent than the ones used in the repo / binder, which could be the source of the problem.

The best solution would be to test locally with those versions, confirm the error is fixed, then bump the dependencies and regenerate the Binder.

@sofroniewn
Copy link
Owner

Ok thanks, I'll look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants