Skip to content

Commit 441cfe2

Browse files
Update element_array_ephys/export/nwb/nwb.py
Co-authored-by: Dimitri Yatsenko <dimitri@datajoint.com>
1 parent 6fc51b0 commit 441cfe2

File tree

1 file changed

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

1 file changed

+2
-5
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818

1919
assert probe.schema.is_activated(), 'probe not yet activated'
2020

21-
for ephys in (ephys_no_curation,):
22-
if ephys.schema.is_activated():
23-
break
24-
else:
25-
raise AssertionError('ephys not yet activated')
21+
assert ephys_no_curation.schema.is_activated, \
22+
"The ephys module must be activated before export."
2623

2724

2825
class DecimalEncoder(json.JSONEncoder):

0 commit comments

Comments
 (0)