Skip to content

Commit 49bba8a

Browse files
committed
WIP: nwb bugfix
1 parent 364f80e commit 49bba8a

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
import numpy as np
55
import pynwb
6-
import datajoint as dj
6+
# import datajoint as dj
77
from element_interface.utils import find_full_path
88
from hdmf.backends.hdf5 import H5DataIO
99
from hdmf.data_utils import GenericDataChunkIterator
@@ -14,12 +14,13 @@
1414
from spikeinterface import extractors
1515
from tqdm import tqdm
1616
import warnings
17-
from ... import probe, ephys_no_curation
17+
from ... import probe
18+
from ... import ephys_no_curation as ephys
1819

19-
assert probe.schema.is_activated(), 'probe not yet activated'
20+
# assert probe.schema.is_activated(), 'probe not yet activated'
2021

21-
assert ephys_no_curation.schema.is_activated, \
22-
"The ephys module must be activated before export."
22+
# assert ephys.schema.is_activated, \
23+
# "The ephys module must be activated before export."
2324

2425

2526
class DecimalEncoder(json.JSONEncoder):
@@ -48,7 +49,7 @@ def __init__(self, lfp_electrodes_query, chunk_length: int = 10000):
4849

4950
first_record = (
5051
self.lfp_electrodes_query & dict(electrode=self.electrodes[0])
51-
).fetch1(as_dict=True)
52+
).fetch1()
5253

5354
self.n_channels = len(self.electrodes)
5455
self.n_tt = len(first_record["lfp"])
@@ -166,7 +167,8 @@ def create_units_table(
166167
nwbfile: pynwb.NWBFile,
167168
paramset_record,
168169
name="units",
169-
desc="data on spiking units"):
170+
desc="data on spiking units"
171+
):
170172
"""
171173
172174
ephys.CuratedClustering.Unit::unit -> units.id

requirements.txt

Lines changed: 2 additions & 2 deletions
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
4-
pynwb==1.4.0
4+
pynwb>=1.4.0
55
element-interface @ git+https://github.com/datajoint/element-interface.git

0 commit comments

Comments
 (0)