Skip to content

Commit d102f6f

Browse files
committed
Issue #63
1 parent bd6d7e4 commit d102f6f

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 5 additions & 4 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
@@ -17,10 +17,11 @@
1717
from ... import probe
1818
from ... 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

2627
class DecimalEncoder(json.JSONEncoder):

0 commit comments

Comments
 (0)