forked from datajoint/element-array-ephys
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move dj_config setup to
tutorial_pipeline.py
- Loading branch information
1 parent
b979fec
commit 0dbdde7
Showing
2 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1 @@ | ||
import os | ||
import datajoint as dj | ||
|
||
if "custom" not in dj.config: | ||
dj.config["custom"] = {} | ||
|
||
# overwrite dj.config['custom'] values with environment variables if available | ||
|
||
dj.config["custom"]["database.prefix"] = os.getenv( | ||
"DATABASE_PREFIX", dj.config["custom"].get("database.prefix", "") | ||
) | ||
|
||
dj.config["custom"]["ephys_root_data_dir"] = os.getenv( | ||
"EPHYS_ROOT_DATA_DIR", dj.config["custom"].get("ephys_root_data_dir", "") | ||
) | ||
|
||
db_prefix = dj.config["custom"].get("database.prefix", "") | ||
|
||
from . import ephys_acute as ephys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters