@@ -200,7 +200,7 @@ def from_parameters_and_templates(cls, params, templates):
200200
201201# important : this is differents from the spikeinterface.core.Sparsity
202202@dataclass
203- class _Sparsity :
203+ class WobbleSparsity :
204204 """Variables that describe channel sparsity.
205205
206206 Parameters
@@ -228,7 +228,7 @@ def from_parameters_and_templates(cls, params, templates):
228228
229229 Returns
230230 -------
231- sparsity : _Sparsity
231+ sparsity : WobbleSparsity
232232 Dataclass object for aggregating channel sparsity variables together.
233233 """
234234 visible_channels = np .ptp (templates , axis = 1 ) > params .visibility_threshold
@@ -252,7 +252,7 @@ def from_templates(cls, params, templates):
252252
253253 Returns
254254 -------
255- sparsity : _Sparsity
255+ sparsity : WobbleSparsity
256256 Dataclass object for aggregating channel sparsity variables together.
257257 """
258258 visible_channels = templates .sparsity .mask
@@ -350,9 +350,9 @@ def __init__(self, recording, return_output=True, parents=None,
350350 params = WobbleParameters (** parameters )
351351 template_meta = TemplateMetadata .from_parameters_and_templates (params , templates_array )
352352 if not templates .are_templates_sparse ():
353- sparsity = _Sparsity .from_parameters_and_templates (params , templates_array )
353+ sparsity = WobbleSparsity .from_parameters_and_templates (params , templates_array )
354354 else :
355- sparsity = _Sparsity .from_templates (params , templates )
355+ sparsity = WobbleSparsity .from_templates (params , templates )
356356
357357 # Perform initial computations on templates necessary for computing the objective
358358 sparse_templates = np .where (sparsity .visible_channels [:, np .newaxis , :], templates_array , 0 )
@@ -555,7 +555,7 @@ def subtract_spike_train(
555555 Dataclass object for aggregating the parameters together.
556556 template_meta : TemplateMetadata
557557 Dataclass object for aggregating template metadata together.
558- sparsity : _Sparsity
558+ sparsity : WobbleSparsity
559559 Dataclass object for aggregating channel sparsity variables together.
560560
561561 Returns
0 commit comments