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 3
3
import json
4
4
import numpy as np
5
5
import pynwb
6
- # import datajoint as dj
6
+ import datajoint as dj
7
7
from element_interface .utils import find_full_path
8
8
from hdmf .backends .hdf5 import H5DataIO
9
9
from hdmf .data_utils import GenericDataChunkIterator
17
17
from ... import probe
18
18
from ... import ephys_no_curation as ephys
19
19
20
- # assert probe.schema.is_activated(), 'probe not yet activated'
21
20
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' )
24
25
25
26
26
27
class DecimalEncoder (json .JSONEncoder ):
You can’t perform that action at this time.
0 commit comments