Skip to content

Commit 7635447

Browse files
committed
clean
1 parent 2034270 commit 7635447

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

spikeinterface_gui/controller.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ def __init__(
111111
displayed_unit_properties += self.extra_unit_properties_names
112112
displayed_unit_properties = [v for v in displayed_unit_properties if v in self.units_table.columns]
113113
self.displayed_unit_properties = displayed_unit_properties
114-
115-
# spikeinterface handle colors in matplotlib style tuple values in range (0,1)
116-
self.refresh_colors()
117114

118115
def set_analyzer_info(self, analyzer):
119116

@@ -309,6 +306,9 @@ def set_analyzer_info(self, analyzer):
309306
self._extremum_channel = get_template_extremum_channel(self.analyzer,
310307
mode="extremum", peak_sign='both', outputs='index')
311308

309+
# spikeinterface handle colors in matplotlib style tuple values in range (0,1)
310+
self.refresh_colors()
311+
312312
# at init, we set the visible channels as the sparsity of the first unit
313313
if self.analyzer_sparsity is not None:
314314
self.visible_channel_inds = self.analyzer_sparsity.unit_id_to_channel_indices[self.unit_ids[0]].astype("int64")
@@ -374,13 +374,11 @@ def set_analyzer_info(self, analyzer):
374374

375375

376376
def set_curation_info(self, curation, curation_data, label_definitions, curation_callback, curation_callback_kwargs):
377-
378377
self.curation = curation
379378
self.curation_callback = curation_callback
380379
self.curation_callback_kwargs = curation_callback_kwargs
381380

382381
self._potential_merges = None
383-
self.curation = curation
384382
# TODO: Reload the dictionary if it already exists
385383
if self.curation:
386384
# rules:
@@ -390,6 +388,7 @@ def set_curation_info(self, curation, curation_data, label_definitions, curation
390388

391389
if curation_data is not None:
392390
# validate the curation data
391+
curation_data = deepcopy(curation_data)
393392
format_version = curation_data.get("format_version", None)
394393
# assume version 2 if not present
395394
if format_version is None:

0 commit comments

Comments
 (0)