We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a724004 + ef7696d commit 0bffb12Copy full SHA for 0bffb12
tutorial_pipeline/ephys_cell_activity.py
@@ -1,9 +1,13 @@
1
import datajoint as dj
2
import numpy as np
3
+import pathlib
4
5
# import the mouse-session schema
6
from tutorial_pipeline.mouse_session import schema, Mouse, Session
7
8
+ephys_data_dir = pathlib.Path(__file__).parent.parent
9
+ephys_data_dir = ephys_data_dir / 'electrophysiology' / 'data'
10
+
11
12
# Table definitions
13
@@ -18,7 +22,7 @@ class Neuron(dj.Imported):
18
22
19
23
def make(self, key):
20
24
# use key dictionary to determine the data file path
21
- data_file = "data/data_{mouse_id}_{session_date}.npy".format(**key)
25
+ data_file = ephys_data_dir / "data_{mouse_id}_{session_date}.npy".format(**key)
26
27
# load the data
28
data = np.load(data_file)
0 commit comments