diff --git a/src/spikeinterface/core/sortinganalyzer.py b/src/spikeinterface/core/sortinganalyzer.py index 5d1e586dea..d9fcf44442 100644 --- a/src/spikeinterface/core/sortinganalyzer.py +++ b/src/spikeinterface/core/sortinganalyzer.py @@ -586,7 +586,9 @@ def load_from_zarr(cls, folder, recording=None): # sparsity if "sparsity_mask" in zarr_root: - sparsity = ChannelSparsity(np.array(zarr_root["sparsity_mask"]), sorting.unit_ids, rec_attributes["channel_ids"]) + sparsity = ChannelSparsity( + np.array(zarr_root["sparsity_mask"]), sorting.unit_ids, rec_attributes["channel_ids"] + ) else: sparsity = None