From d7dedb59fd3bb6a255eafcf8beeed35a4cd3a6d4 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Wed, 31 Jan 2024 14:53:08 +0100 Subject: [PATCH] Zarr streaming is not pickleable --- .../extractors/tests/test_nwbextractors_streaming.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/spikeinterface/extractors/tests/test_nwbextractors_streaming.py b/src/spikeinterface/extractors/tests/test_nwbextractors_streaming.py index 63a84d39fd..a4376302c8 100644 --- a/src/spikeinterface/extractors/tests/test_nwbextractors_streaming.py +++ b/src/spikeinterface/extractors/tests/test_nwbextractors_streaming.py @@ -284,15 +284,6 @@ def test_sorting_s3_nwb_zarr(tmp_path): # assert spike_train.dtype == "int64" # assert np.all(spike_train >= 0) - tmp_file = tmp_path / "test_zarr_sorting.pkl" - with open(tmp_file, "wb") as f: - pickle.dump(sorting, f) - - with open(tmp_file, "rb") as f: - reloaded_sorting = pickle.load(f) - - check_sortings_equal(reloaded_sorting, sorting) - # with this mode, the object is not serializable assert not sorting.check_serializability("json") assert not sorting.check_serializability("pickle")