Skip to content

Commit 6fc51b0

Browse files
committed
Merge remote-tracking branch 'origin/convert_to_nwb' into convert_to_nwb
2 parents 3e07c61 + 9f9872c commit 6fc51b0

File tree

1 file changed

+5
-5
lines changed
  • element_array_ephys/export/nwb

1 file changed

+5
-5
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
from spikeinterface import extractors
1515
from tqdm import tqdm
1616
import warnings
17-
from ... import probe, ephys_acute
17+
from ... import probe, ephys_no_curation
1818

1919
assert probe.schema.is_activated(), 'probe not yet activated'
2020

21-
for ephys in (ephys_acute,):
21+
for ephys in (ephys_no_curation,):
2222
if ephys.schema.is_activated():
2323
break
2424
else:
@@ -215,10 +215,10 @@ def create_units_table(
215215
):
216216

217217
probe_id, shank_num = (
218-
probe.ProbeType.Electrode
219-
* ephys.ProbeInsertion
218+
ephys.ProbeInsertion
220219
* ephys.CuratedClustering.Unit
221-
& {"unit": unit["unit"], "insertion_number": unit["insertion_number"]}
220+
* probe.ProbeType.Electrode
221+
& unit
222222
).fetch1("probe", "shank")
223223

224224
waveform_mean = (

0 commit comments

Comments
 (0)