Fix t_starts not propagated to save_to_memory.#3120
Fix t_starts not propagated to save_to_memory.#3120alejoe91 merged 12 commits intoSpikeInterface:mainfrom
t_starts not propagated to save_to_memory.#3120Conversation
t_starts not propagated to save memory.t_starts not propagated to save_to_memory.
4005c75 to
16d4089
Compare
There was a problem hiding this comment.
Let's move the corresponding tests from #3117 to here.
I suspect that you tested this in #3117 because you wanted to have a canonical way for seting the t_start in your tests but you don't really need it, t_start is a public attribute of the segment class.
Plus, you are adding interface in #3117 and the tests should not depend on the newly added interface. Having t_start as an attribute of the segment class is a deper contract that the interface at the recording class and the tests of the interface should rely on the machinery that is already baked in on the data model.
…fix_save_to_memory_t_start
|
Thanks both, I will move the tests over now |
|
@h-mayorquin @samuelgarcia @alejoe91 I re-requested review as added tests from #3117 to here, these cover all saving behaviour for both time representations + some other time-related functions. Herberto I tried to reduce the indirection on the fixtures by a level, let me know if it is still not clear. |
alejoe91
left a comment
There was a problem hiding this comment.
LGTM!!
Removed the deprecated tests ;)
This PR closes #2515 by propagated
t_startsto memory recording objects duringsave_to_memory. This is tested in #3117.This works to propagate the times to save to memory, and tests are passing, but I havn't considered other uses for these recording classes. So it would be great if others could let me know if this might break anything elsewhere! I can't see why it would as it uses default kwargs that maintain the old behaviour, but still I'm paranoid 😅
Tests are added here that cover propagation of time information when stored as
t_startandtime_vectorto various methods of saving the data. Also ,tests for other time-related functions (e.g.sample_time_to_index()are added).