Skip to content

Commit 1717054

Browse files
committed
Update Dockerfile and tutorial_pipeline to fix errors
1 parent ce6e3bf commit 1717054

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ENV DJ_HOST fakeservices.datajoint.io
4141
ENV DJ_USER root
4242
ENV DJ_PASS simple
4343

44-
ENV EPHYS_ROOT_DATA_DIR /workspaces/element-array-ephys/example_data
44+
ENV EPHYS_ROOT_DATA_DIR /workspaces/element-array-ephys/example_data/processed
4545
ENV DATABASE_PREFIX neuro_
4646

4747
USER vscode

notebooks/tutorial_pipeline.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,17 @@ def get_ephys_root_data_dir():
3030
lab.activate(db_prefix + "lab")
3131
subject.activate(db_prefix + "subject", linking_module=__name__)
3232
session.activate(db_prefix + "session", linking_module=__name__)
33+
34+
@lab.schema
35+
class SkullReference(dj.Lookup):
36+
definition = """
37+
skull_reference : varchar(60)
38+
"""
39+
contents = zip(["Bregma", "Lambda"])
40+
41+
def get_session_directory(session_key):
42+
session_directory = (session.SessionDirectory & session_key).fetch1("session_dir")
43+
return pathlib.Path(session_directory)
44+
45+
3346
ephys.activate(db_prefix + "ephys", db_prefix + "probe", linking_module=__name__)

0 commit comments

Comments
 (0)