-
Notifications
You must be signed in to change notification settings - Fork 4
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
Resample dimension exceeds 2^31 - bytes #107
Comments
I think found an alternative resampling function doesn't produce this error. The @izzy-baldacci Can you please compare these resampling functions Resampling to the nearest kHz takes forever! To make our lives easier, I strongly advocate we only resample once during the analysis phase (eg. from 12.4kHz to 3kHz). @KrisBouchard What would it take for your to be convinced that fractional sample rates are not evil? Finally One last thought is that if we end up using an FFT based approach, does it make sense to directly resample in the frequency domain while doing the wavelet transform (ie. only transform a subset of frequency)? That away we only convert to frequency space once as opposed to ping ponging back and forth between the time and frequency domains, which is inefficient. As we introduce neuropixels, we will have potentially 10x more data. So to the extent we can make the pipeline scalable, the easier our lives will be :) |
@jthermiz I think that's a new error :(. Which block is this on? These problems seem to happen for the mkl fft library. A few years ago the mkl library was sometimes 10-100x faster than the default numpy or scipy routines. It might make sense to do a little benchmark and just use numpy or scipy if they don't have as many problems. I can run a few tests. It looks like scipy has some parallelization. which could also help. The resample will be by far the slowest operation for NWB conversion with the current pipeline. I'd also advocate for not resampling, if that's acceptable. We'd eventually have to resample, but it would be during the wavelet steps, which are also slow. @jthermiz I think the Doing time-domain resampling is extremely slow for signals of this length.
|
@JesseLivezey I ran into this error when trying to convert this block: Re: time vs frequency domain: That makes sense. Re padding: Depending on how long the artifact lasts for and alternative is to throw away samples in the beginning and end of the recording. It usually takes us 5-10 sec to press play on dvd player (the play button on the dvd player is not so responsive these days...). If the artifact last for < 1 sec, I'd vote for karate chopping off dt (where dt <= 1 sec) at the beginning and end of the data. 🥋 |
I'm going to switch |
pip uninstall process-nwb
pip install process-nwb should fix this. |
I was able to resample a full tone ECoG (128 channels @ 12.xxx kHz) down to 4kHz on catscan. |
I believe this is a known issue in
process_nwb
, but I get this when trying to run the pipeline with the resample flag set toTrue
The text was updated successfully, but these errors were encountered: