Skip to content

reference.py

Device

Bases: Lookup

Table for managing lab devices.

Attributes:

Name Type Description
device varchar(32)

Device short name.

modality varchar(64)

Modality for which this device is used.

description varchar(256), optional

Description of device.

Source code in workflow_optogenetics/reference.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@schema
class Device(dj.Lookup):
    """Table for managing lab devices.

    Attributes:
        device ( varchar(32) ): Device short name.
        modality ( varchar(64) ): Modality for which this device is used.
        description ( varchar(256), optional ): Description of device.
    """

    definition = """
    device             : varchar(32)
    ---
    modality           : varchar(64)
    description=''     : varchar(256)
    """
    contents = [
        ["OPTG_4", "Optogenetics", "Doric Pulse Sequence Generator"],
    ]