Repository navigation
Conversation
| executor.run() | ||
|
|
||
|
|
||
| # used by write_binary_recording + ChunkRecordingExecutor |
There was a problem hiding this comment.
I moved this so it follows the pattern that all the ChunkRecordingExector chunk functions follow. The function is after the caller of ChunkRecordingExecutor. Sorry for my OCD.
There was a problem hiding this comment.
No worries! Honestly I also found it aannoying
| d["t_start"] = None | ||
| d["time_vector"] = None | ||
| d["sampling_frequency"] = sampling_frequency | ||
| time_kwargs = {} |
There was a problem hiding this comment.
This also got in my way when debuggin, sorry @samuelgarcia . If you want to keep single letter, feel free to rever to something other than d.
You managed to exceed an |
|
@DradeAW
|
|
For a recording using 8 bytes (int64, float64) lasting a full day at 100 kHz on 10,000 channels, that's I already had a problem of overflow with the coincidence matrix. |
|
For these kind of thing normal python int is even better. The problem was that we propagated from neo numpy scalar without knowing. There was no intentional choice at any step of the chain. |
Annoying bug that happens with concatenation but can happen with any recording that is long enough. Here is the problem. To create the file, the size of the file-to-be is esimated with this line:
https://github.com/h-mayorquin/spikeinterface/blob/65e4c178dc3bd0f826ce2b10fcb31a8e7da4698b/src/spikeinterface/core/core_tools.py#L297
But sometimes the number of frames is a numpy scalar (and not a python integer). Numpy scalars behave like numpy objects and they have an overflow. That means that the file size ends up being smaller than it should and the writting to the buffer fails.
You can see that there is an overflown ins the screenshot that the user shared with us:
Plus, you can see that the concatenated recording is smaller than the pieces.
So, to solves it, we need to be sure that
get_num_samples()i is not a numpy scalar but a python scalar (they can be as long as as they need to be). I modified the code to do that.