File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
element_array_ephys/export/nwb Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 33import json
44import numpy as np
55import pynwb
6- # import datajoint as dj
6+ import datajoint as dj
77from element_interface .utils import find_full_path
88from hdmf .backends .hdf5 import H5DataIO
99from hdmf .data_utils import GenericDataChunkIterator
1717from ... import probe
1818from ... import ephys_no_curation as ephys
1919
20- # assert probe.schema.is_activated(), 'probe not yet activated'
2120
22- # assert ephys.schema.is_activated, \
23- # "The ephys module must be activated before export."
21+ ephys_mode = os .getenv ('EPHYS_MODE' , dj .config ['custom' ].get ('ephys_mode' , 'acute' ))
22+ if ephys_mode != 'no-curation' :
23+ raise NotImplementedError ('This export function is designed for the no_curation '
24+ + 'schema' )
2425
2526
2627class DecimalEncoder (json .JSONEncoder ):
You can’t perform that action at this time.
0 commit comments