Skip to content

Commit 1d89f3a

Browse files
committed
add lab_recordings_schema
1 parent 3134c42 commit 1d89f3a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/ethopy/core/recordings.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
"""Create tables for the lab_recordings schema."""
2+
3+
import datajoint as dj
4+
5+
from ethopy.core.logger import ( # noqa: F401
6+
experiment,
7+
recording,
8+
)
9+
10+
11+
@recording.schema
12+
class Software(dj.Lookup):
13+
"""Acquisition software and version."""
14+
definition = """
15+
software: varchar(64)
16+
version: varchar(16)
17+
---
18+
description: varchar(248)
19+
"""
20+
21+
22+
@recording.schema
23+
class Aim(dj.Lookup):
24+
"""Recording aim."""
25+
definition = """
26+
rec_aim: varchar(16)
27+
---
28+
rec_time: enum('functional','structural','behavior','other','sync')
29+
description: varchar(2048)
30+
"""
31+
32+
33+
@recording.schema
34+
class Recording(dj.Manual):
35+
"""Recording metadata."""
36+
definition = """
37+
-> experiment.Session
38+
rec_idx: smallint
39+
---
40+
-> Software
41+
-> Aim
42+
filename: varchar(255)
43+
source_path: varchar(512)
44+
target_path: varchar(512)
45+
timestamp=CURRENT_TIMESTAMP : timestamp
46+
"""

0 commit comments

Comments
 (0)