Skip to content

Commit

Permalink
fix(curatedclustering): correctly account for channel2electrode mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Apr 8, 2024
1 parent 76e5834 commit f723c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element_array_ephys/ephys_organoids.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ def make(self, key):
electrode_query &= f'electrode IN {tuple(probe_info["used_electrodes"])}'

channel_info = electrode_query.fetch(as_dict=True, order_by="electrode")
channel_info: dict[int, dict] = {ch["electrode"]: ch for ch in channel_info}
channel_info: dict[int, dict] = {ch_idx: ch for ch_idx, ch in enumerate(channel_info)}

# Get unit id to quality label mapping
try:
Expand Down

0 comments on commit f723c67

Please sign in to comment.