-
Notifications
You must be signed in to change notification settings - Fork 240
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
improve spikeglx file naming #1125
improve spikeglx file naming #1125
Conversation
Hello @samuelgarcia! 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 2022-08-04 08:14:39 UTC |
@TomBugnon @grahamfindlay If you have time to test and give feed back it would be great. |
Hi @samuelgarcia , Thanks a lot for implementing this.! I tried instantiating recordings for a few real life datasets (not covering all the cases that graham provided you) and it seems to be working fine when the gate index is 0 (I didn't check what the data actually loaded looks like, but the number of segments and total duration look correct) However I still get the same error when trying to load folder with gate index > 0. It seems like the gate is not parsed properly from the folder/filename?
Besides that the main comment I have is about user control of gates/triggers that are being concatenated:
Couple other comments that came to my mind
Best |
Hi Tom, Ok for putting some kwargs for filtering directly in init for g and t selection. For metadata : yes you will be able to access then. This PR #627 have been merged recently. For t_start: in SI you should not acces |
Hi @TomBugnon Normaly all case now handled:
Depending the depth of the folder we can have several case, wwith the dataset you provide. Given the dataset provied by @grahamfindlay we can have:
Tell me if this is ok for you. |
Hi Samuel, Thank you so much for this! I haven't checked that the data actually loaded is correct but the extractor seems to find the right number of segments in my case! Regarding our previous comment, it doesn't seem like there are kwargs to subselect gate and trigger indices at initiation? |
This warning is anoying and I plan to remove it soon. It just check that real file size is exactly the one in meta. |
@TomBugnon Did you intentionally reduce the file size before loading? |
@JuliaSprenger I suspect I know what’s going on here: we use an OpenZFS file system that performs on-the-fly compression for our large datasets, so size on disk will not match file size reported in the metadeta. You can get the file system to report the uncompressed file size, but naive checks might just be asking for size on disk. |
I see, so |
@JuliaSprenger Well, that was my theory, but it doesn't seem to hold up. |
@JuliaSprenger I just checked out all the files that @TomBugnon was using, and everything looks square to me. Using Python 3.7.12, |
Also @samuelgarcia , if I try to instantiate from a folder in which there are only 'lf' files, no 'ap' file, I get the following errors extractor = SpikeGLXRecordingExtractor(
folder_path,
stream_id='imec0.lf'
)
And with stream_id = 'imec0.ap' (there is no extractor = SpikeGLXRecordingExtractor(
folder_path,
stream_id='imec0.ap'
)
|
@TomBugnon : for the LF metadata there is no description of the probe because the meta file of LF do not contain the |
@samuelgarcia any news on this? |
Hi julia, The latest bug is related to spikeinterface/probeinterface because for LF there is no probe description in meta. |
@samuelgarcia Cool, can you track the remaining problem in a separate issue and link it here? Then we can merge this for now. |
No description provided.