Skip to content

Remove load_from/save_to folder_metadata in save/load operations#4689

Open
alejoe91 wants to merge 17 commits into
SpikeInterface:mainfrom
alejoe91:save-timestamps
Open

Remove load_from/save_to folder_metadata in save/load operations#4689
alejoe91 wants to merge 17 commits into
SpikeInterface:mainfrom
alejoe91:save-timestamps

Conversation

@alejoe91

Copy link
Copy Markdown
Member

In the direction of #4671, this PR starts by rmeoving the unused mechanism to save to / load from metadata.

In addition, this PR also fixes saving timestamps in proper binary format.
For recording objects, the _extra_metadata_to_folder was saving timestamps to npy files, but this is now handled by the write_binary and BinaryRecordingExtractor, which writes in chunk to proper binary files. The ~binaryRecordingExtractoracceprs afile_timestamps_pathwith the location of the raw timestamps. Note that this is absolutely necessary for chronic data, since the old version was saving the entire timestamps array with numpy and this cannot be done with very long recordings. Old datasets are handled with the_handle_extractor_backward_compatibility`.

To further cleanup, this PR adds save_properties_to/load_properties_from_binary_folder to remove duplicated code for saving and loading properties to numpy arrays.

The cross serialization check was extended to always run against major past versions, to test a recording with timestamps, and to save recordings in parallel for zarr/binary_folder.

@alejoe91 alejoe91 added core Changes to core module refactor Refactor of code, with no change to functionality labels Jul 14, 2026
@alejoe91 alejoe91 added this to the 0.105.0 milestone Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module refactor Refactor of code, with no change to functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant