From f57c3c71a13f3c2dbddca71de684fab82d0e8058 Mon Sep 17 00:00:00 2001 From: Michael Denker Date: Fri, 10 Nov 2023 15:32:38 +0100 Subject: [PATCH] Removed unit_id and channel_id as non-API components of pattern dicts --- viziphant/patterns.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/viziphant/patterns.py b/viziphant/patterns.py index 5a11e9d..4a823fd 100644 --- a/viziphant/patterns.py +++ b/viziphant/patterns.py @@ -462,9 +462,8 @@ def plot_patterns_graph(patterns, n_recorded_neurons=None, for dataset in patterns: dataset = dataset['patterns'] for pattern in dataset: - neuron_ids = map(lambda x, y: "ch{}#{}".format(x, y), - pattern['channel_ids'], - pattern['unit_ids']) + neuron_ids = map(lambda x: "neuron{}".format(x), + pattern['neurons']) vertices_to_labels.update(zip(pattern['neurons'], neuron_ids)) vertices_to_labels = sorted(list(vertices_to_labels.items()),