Skip to content

Commit

Permalink
Removed unit_id and channel_id as non-API components of pattern dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdenker committed Nov 10, 2023
1 parent 5d9e251 commit f57c3c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions viziphant/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit f57c3c7

Please sign in to comment.