Skip to content

Commit b62fd12

Browse files
committed
WIP: NWB fix - prevent SQL err by restricting key
1 parent 49bba8a commit b62fd12

File tree

1 file changed

+2
-1
lines changed
  • element_array_ephys/export/nwb

1 file changed

+2
-1
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ def create_units_table(
217217
ephys.ProbeInsertion
218218
* ephys.CuratedClustering.Unit
219219
* probe.ProbeType.Electrode
220-
& unit
220+
& dict((k, unit[k]) for k in unit.keys() # excess keys caused errs
221+
if k not in ['spike_times', 'spike_sites', 'spike_depths'])
221222
).fetch1("probe", "shank")
222223

223224
waveform_mean = (

0 commit comments

Comments
 (0)