-
Notifications
You must be signed in to change notification settings - Fork 266
Enable AxonaIO to read spiketimes and waveforms #986
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
Enable AxonaIO to read spiketimes and waveforms #986
Conversation
|
Hello @JuliaSprenger! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-06-18 12:16:53 UTC |
sbuergers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nicely done. I mostly have nit-picky comments. I will send you the sample data so we can run proper tests with neo (should then also include the filenames in the rawio and io tests of axona).
235efb2 to
a073f6b
Compare
|
@samuelgarcia Do you have any comments for this PR? I already rebased to include the latest changes in the test suite. |
|
I added more testfiles to gin (https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/54). @samuelgarcia can you check these and merge both PRs if you are happy with the current state? |
|
Hi @samuelgarcia it seems like the new test data files are not automatically downloaded from gin. Can we do a manual reset of the cache? |
|
Weird. I will have a look. |
|
I observed the same effect locally. The new files were not automatically downloaded and I had to delete the complete |
|
STrange. I will have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with this patch it should be good now (besides the gin issues mentioned above):
| # spike times are repeated for each contact -> use only first contact | ||
| unit_spikes = raw_spikes['spiketimes'][::4] | ||
|
|
||
| # slice spike times only if needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, when t_start and t_stop are given the whole timeseries is returned.
Only specific segments are returned when either t_start or t_stop is None.
I made a local patch for this, and will still be working with it today. If it works fine I will either just send it to you or put it in the catalystneuro fork.
|
@samuelgarcia Any news regarding the download of the new test data? |
|
@samuelgarcia I cherry-picked your datalad fix also in this branch, so now all files are downloaded properly and tests pass. |
|
Hi @samuelgarcia with the fetching of the testfiles fixed and this PR being in a completish state for some time already it's up to your final approval for this to be merged! |
…analogsignal_chunk when no .bin file
…arawio (rather than depend on spikeextractors)
This reverts commit 09520c5.
This reverts commit 0340f4f.
This reverts commit 5b1b934.
… to axonarawio (rather than depend on spikeextractors)" This reverts commit cbed9f3.
…for get_analogsignal_chunk when no .bin file" This reverts commit cccb739.
4e38c0e to
43e5c65
Compare
|
I had to rebase on master to resolve conflicts with base, but now all comments are addressed. @samuelgarcia You can either provide more feedback or merge. |
|
This looks good. |
|
I am ready to merge. @samuelgarcia go ahead ;) |
This PR implements the required rawio methods for reading spiketimes and waveforms. It also restructures the IO to be able to support multi-file datasets (.bin & unit files).
This PR depends on the Axona unit test data that will be added to the ephy_testing_data: https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/49/files