Skip to content

Commit 747c15f

Browse files
authored
Merge pull request #70 from ttngu207/no-curation
bugfix for LFP electrode mapping
2 parents 364f80e + f11e016 commit 747c15f

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def make(self, key):
407407
for key in electrode_query.fetch('KEY')}
408408

409409
electrode_keys.extend(probe_electrodes[channel_idx]
410-
for channel_idx in oe_probe.lfp_meta['channels_indices'])
410+
for channel_idx in lfp_channel_ind)
411411
else:
412412
raise NotImplementedError(f'LFP extraction from acquisition software'
413413
f' of type {acq_software} is not yet implemented')
@@ -428,7 +428,8 @@ class ClusteringMethod(dj.Lookup):
428428
clustering_method_desc: varchar(1000)
429429
"""
430430

431-
contents = [('kilosort2.5', 'kilosort2.5 clustering method'),
431+
contents = [('kilosort2', 'kilosort2 clustering method'),
432+
('kilosort2.5', 'kilosort2.5 clustering method'),
432433
('kilosort3', 'kilosort3 clustering method')]
433434

434435

element_array_ephys/ephys_chronic.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
import numpy as np
55
import inspect
66
import importlib
7+
from decimal import Decimal
78

89
from element_interface.utils import find_root_directory, find_full_path, dict_to_uuid
910

1011
from .readers import spikeglx, kilosort, openephys
11-
from . import probe
12+
from . import probe, get_logger
13+
14+
15+
log = get_logger(__name__)
1216

1317
schema = dj.schema()
1418

@@ -350,7 +354,7 @@ def make(self, key):
350354
for key in electrode_query.fetch('KEY')}
351355

352356
electrode_keys.extend(probe_electrodes[channel_idx]
353-
for channel_idx in oe_probe.lfp_meta['channels_indices'])
357+
for channel_idx in lfp_channel_ind)
354358
else:
355359
raise NotImplementedError(f'LFP extraction from acquisition software'
356360
f' of type {acq_software} is not yet implemented')
@@ -371,7 +375,8 @@ class ClusteringMethod(dj.Lookup):
371375
clustering_method_desc: varchar(1000)
372376
"""
373377

374-
contents = [('kilosort2.5', 'kilosort2.5 clustering method'),
378+
contents = [('kilosort2', 'kilosort2 clustering method'),
379+
('kilosort2.5', 'kilosort2.5 clustering method'),
375380
('kilosort3', 'kilosort3 clustering method')]
376381

377382

element_array_ephys/ephys_no_curation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def make(self, key):
406406
for key in electrode_query.fetch('KEY')}
407407

408408
electrode_keys.extend(probe_electrodes[channel_idx]
409-
for channel_idx in oe_probe.lfp_meta['channels_indices'])
409+
for channel_idx in lfp_channel_ind)
410410
else:
411411
raise NotImplementedError(f'LFP extraction from acquisition software'
412412
f' of type {acq_software} is not yet implemented')
@@ -427,7 +427,8 @@ class ClusteringMethod(dj.Lookup):
427427
clustering_method_desc: varchar(1000)
428428
"""
429429

430-
contents = [('kilosort2.5', 'kilosort2.5 clustering method'),
430+
contents = [('kilosort2', 'kilosort2 clustering method'),
431+
('kilosort2.5', 'kilosort2.5 clustering method'),
431432
('kilosort3', 'kilosort3 clustering method')]
432433

433434

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
datajoint>=0.13
2-
pyopenephys @ git+https://github.com/ttngu207/pyopenephys.git
2+
pyopenephys @ git+https://github.com/datajoint-company/pyopenephys.git
33
openpyxl
44
pynwb==1.4.0
55
element-interface @ git+https://github.com/datajoint/element-interface.git

0 commit comments

Comments
 (0)