Skip to content

Commit f4052cc

Browse files
Thinh Nguyendimitri-yatsenko
andauthored
Apply suggestions from code review
Co-authored-by: Dimitri Yatsenko <[email protected]>
1 parent 779b2fb commit f4052cc

File tree

1 file changed

+1
-1
lines changed
  • element_array_ephys/export

1 file changed

+1
-1
lines changed

element_array_ephys/export/nwb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def curated_clusterings_to_nwb(curated_clustering_keys, nwbfile, ephys_module=No
137137
lfp_time_stamps = (ephys.LFP & curated_clustering_key).fetch1('lfp_time_stamps')
138138

139139
electrode_ind, lfp_data = [], []
140-
for chn in np.unique(lfp_channels):
140+
for chn in set(lfp_channels):
141141
lfp_data.append((ephys.LFP.Electrode
142142
& curated_clustering_key & {'electrode': chn}).fetch1('lfp'))
143143
electrode_ind.append(np.where(nwbfile.electrodes.id.data == chn)[0][0])

0 commit comments

Comments
 (0)