Skip to content

Commit

Permalink
Zarr streaming is not pickleable
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jan 31, 2024
1 parent b883497 commit d7dedb5
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d7dedb5

Please sign in to comment.