Skip to content

Commit

Permalink
Check for activated schema instead of pulling info from dj.config
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Apr 19, 2024
1 parent 04c0ae1 commit b52d7f4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions element_array_ephys/export/nwb/nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
from spikeinterface import extractors
from tqdm import tqdm

from ... import ephys_no_curation as ephys
from ... import ephys_no_curation
from ... import probe

ephys_mode = os.getenv("EPHYS_MODE", dj.config["custom"].get("ephys_mode", "acute"))
if ephys_mode != "no-curation":

if ephys_no_curation.schema.is_activated():
from ... import ephys_no_curation as ephys
else:
raise NotImplementedError(
"This export function is designed for the no_curation " + "schema"
f"This export function is only designed for the `ephys_no_curation` schema."
)


Expand Down

0 comments on commit b52d7f4

Please sign in to comment.