Skip to content

Validator

Connection

Bases: Base

A single connection between two cells.

Parameters:

Name Type Description Default
pre

The pre-synaptic cell

required
post

The post-synaptic cell

required
weight

The weight of the connection, which could be the number of synapses or a normalized value.

required
Source code in cect/validation/Validator.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
@modelspec.define
class Connection(Base):
    """
    A single connection between two cells.

    Args:
        pre: The pre-synaptic cell
        post: The post-synaptic cell
        weight: The weight of the connection, which could be the number of synapses or a normalized value.
    """

    pre: str = field(validator=instance_of(str))
    post: str = field(validator=instance_of(str))
    weight: float = field(validator=instance_of(float))

ConnectionList

Bases: Base

A model of a list of connections of a specific synapse type.

Parameters:

Name Type Description Default
synapse

The type of synapse

required
comment

A comment about how the data was found, e.g. taken from a spreadsheet

required
connections

The list of connections of this type

required
Source code in cect/validation/Validator.py
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@modelspec.define
class ConnectionList(Base):
    """
    A model of a list of connections of a specific synapse type.

    Args:
        synapse: The type of synapse
        comment: A comment about how the data was found, e.g. taken from a spreadsheet
        connections: The list of connections of this type
    """

    synapse: str = field(validator=instance_of(str))
    comment: str = field(validator=instance_of(str))
    connections: List[Connection] = field(factory=list)

ReaderExpectedData

Bases: Base

A model of expected data for a specific reader.

Parameters:

Name Type Description Default
reader

The name of the reader

required
connection_lists

The list of connection lists for this reader

required
Source code in cect/validation/Validator.py
40
41
42
43
44
45
46
47
48
49
50
51
@modelspec.define
class ReaderExpectedData(Base):
    """
    A model of expected data for a specific reader.

    Args:
        reader: The name of the reader
        connection_lists: The list of connection lists for this reader
    """

    reader: str = field(validator=instance_of(str))
    connection_lists: List[ConnectionList] = field(factory=list)