Export_to_ibl (take 2)#3857
Conversation
for more information, see https://pre-commit.ci
zm711
left a comment
There was a problem hiding this comment.
I think this is cool. I think Alessio would have to take the rms function to deal with the chunking. But keeping things within the si framework is super nice. a couple initial comments that should be super easy to do.
|
Will do! Thanks for the re-writing @jonahpearl !! |
|
-- Added a test (passes locally for me), made a few fixes based on that |
zm711
left a comment
There was a problem hiding this comment.
Hey Jonah few more things on my end. I don't want to generate too much work before Alessio hops onto this PR. But I think we definitely need to protect for the case where the user no longer has a useable recording.
for more information, see https://pre-commit.ci
|
Thanks Jonah. I'll leave this alone now until Alessio deals with it just to ensure we don't end up with conflicting stuff! :) |
|
Hi @jonahpearl I finally found some time to review and work on this. Here are some updates:
Can you test it on your side and make sure that the IBL GUI works well with the output? |
|
Just tried it out — works well and fast. Seems like there's one test failing just because it still has the old function name. |
Fixed now! |
|
Awesome! I'll merge then :) |
|
Thanks Alessio! |
Attempts to resolve #2843, again :) This version doesn't require any utility functions outside of what spikeinterface already has, plus some functionality from numpy and scipy.
I expect that someone who knows SI a bit better than me will be able to take the
_get_rmsfunction and convert it into a class that can use the ChunkExtractor to speed things up with multi-processing. If no one gets around to it by the next month I can have a go, I just have some deadlines in the meantime. The LFP spectrum is currently just calculated on a single snippet of LFP data, so I don't think it needs to be parallelized.