Skip to content

Commit 18b1d73

Browse files
Add lang-spec content for Integrity.
1 parent 9e0c432 commit 18b1d73

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. code-block:: python
2+
3+
@schema
4+
class Mouse(dj.Manual):
5+
definition = """
6+
mouse_name : varchar(64)
7+
---
8+
mouse_dob : datetime
9+
"""
10+
11+
@schema
12+
class MouseDeath(dj.Manual):
13+
definition = """
14+
-> Mouse
15+
---
16+
death_date : datetime
17+
"""
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. code-block:: python
2+
3+
@schema
4+
class EEGRecording(dj.Manual):
5+
definition = """
6+
-> Session
7+
eeg_recording_id : int
8+
---
9+
eeg_system : varchar(64)
10+
num_channels : int
11+
"""
12+
13+
@schema
14+
class ChannelData(dj.Imported):
15+
definition = """
16+
-> EEGRecording
17+
channel_idx : int
18+
---
19+
channel_data : longblob
20+
"""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. code-block:: python
2+
3+
@schema
4+
class Mouse(dj.Manual):
5+
definition = """
6+
mouse_name : varchar(64)
7+
---
8+
mouse_dob : datetime
9+
"""
10+
11+
@schema
12+
class SubjectGroup(dj.Manual):
13+
definition = """
14+
group_number : int
15+
---
16+
group_name : varchar(64)
17+
"""
18+
19+
class GroupMember(dj.Part):
20+
definition = """
21+
-> master
22+
-> Mouse
23+
"""
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. code-block:: python
2+
3+
@schema
4+
class RecordingModality(dj.Lookup):
5+
definition = """
6+
modality : varchar(64)
7+
"""
8+
9+
@schema
10+
class MultimodalSession(dj.Manual):
11+
definition = """
12+
-> Session
13+
modes : int
14+
"""
15+
16+
class SessionMode(dj.Part):
17+
definition = """
18+
-> master
19+
-> RecordingModality
20+
"""

0 commit comments

Comments
 (0)