Skip to content

Commit 0bffb12

Browse files
authored
Merge pull request #10 from ttngu207/master
bugfix in data path
2 parents a724004 + ef7696d commit 0bffb12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tutorial_pipeline/ephys_cell_activity.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import datajoint as dj
22
import numpy as np
3+
import pathlib
34

45
# import the mouse-session schema
56
from tutorial_pipeline.mouse_session import schema, Mouse, Session
67

8+
ephys_data_dir = pathlib.Path(__file__).parent.parent
9+
ephys_data_dir = ephys_data_dir / 'electrophysiology' / 'data'
10+
711

812
# Table definitions
913

@@ -18,7 +22,7 @@ class Neuron(dj.Imported):
1822

1923
def make(self, key):
2024
# 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)
2226

2327
# load the data
2428
data = np.load(data_file)

0 commit comments

Comments
 (0)