eoscircuits.alcircuits package

Submodules

eoscircuits.alcircuits.circuit module

Antennal Lobe Circuit

This module supports:

1. Changing parameter values of Biological Spike Generators (BSGs) associated with each of the Local and Projection Neurons, 2. Changing the number and connectivity of Projection Neurons innervating a given AL Glomerulus, 3. Changing the number and connectivity of Local Neurons in the Predictive Coding and ON-OFF circuits of the AL

class eoscircuits.alcircuits.circuit.ALCircuit(graph, config)[source]

Bases: eoscircuits.basecircuit.Circuit

Antennal Lobe Circuit

Parameters
Return type

None

config: eoscircuits.alcircuits.circuit.ALConfig

Configuration of Circuit. Fully Specifies the Circuit

classmethod create_from_config(cfg)[source]

Create Instance from Config

Parameters

cfg – Config instance that specifies the configuration of the module

Returns

A new ANTCircuit instance

Return type

eoscircuits.alcircuits.circuit.ALCircuit

classmethod create_graph(cfg)[source]

class method that creates an instance of networkx graph from configuration

Return type

networkx.classes.multidigraph.MultiDiGraph

extra_comps: List[NDComponent]

Extra Components to be aded to NeuroKernel at Run Time

get_node_ids(node_type, receptor=None)[source]
Parameters
  • node_type (ALConfig.node_types) –

  • receptor (Union[str, Iterable[str]]) –

Return type

list

property inputs

Output OTP Nodes IDs and the Variables

Returns

OTPs with input variable conc

property outputs

Output BSG Nodes IDs and the Variables

Returns

PNs with output variable r

set_neuron_number(node_type, number, receptor=None)[source]

Set Number of Neurons and change Routing Table Appropriately

Parameters
  • node_type (ALConfig.node_types) –

  • number (int) –

  • receptor (Union[str, Iterable[str]]) –

Return type

ALCircuit

set_node_params(node_type, key, value, receptor=None)[source]

Set Parameter Value of selected Nodes

Parameters
  • node_type (ALConfig.node_types) –

  • key (str) –

  • value (float) –

  • receptor (Union[str, Iterable[str]]) –

set_routing(table, name, receptor=None)[source]

Seting Routing Table in Antennal Lobe

Parameters
  • table (numpy.ndarray) –

  • name (str) –

  • receptor (Optional[Union[str, Iterable[str]]]) –

class eoscircuits.alcircuits.circuit.ALConfig(NO:Iterable[Iterable[int]], affs:Iterable[float], receptors:Iterable[str]=None, resting:float=None, node_params:dict=<factory>, osns:Iterable[Iterable[str]]=None, NP:Union[int, Iterable[int]]=None, NPreLN:int=None, NPosteLN:Union[int, Iterable[int]]=None, NPostiLN:Union[int, Iterable[int]]=None, prelns:Iterable[str]=None, postelns:Iterable[Iterable[str]]=None, postilns:Iterable[Iterable[str]]=None, pns:Iterable[Iterable[str]]=None, osn_to_preln:Iterable[Iterable[float]]=None, osn_to_postiln:Iterable[Iterable[float]]=None, osn_to_posteln:Iterable[Iterable[float]]=None, preln_to_axt:Iterable[Iterable[float]]=None, axt_to_pn:Iterable[Iterable[float]]=None, postiln_to_pn:Iterable[Iterable[float]]=None, posteln_to_pn:Iterable[Iterable[float]]=None)[source]

Bases: eoscircuits.antcircuits.circuit.ANTConfig

Parameters
  • NO (Iterable[Iterable[int]]) –

  • affs (Iterable[float]) –

  • receptors (Iterable[str]) –

  • resting (float) –

  • node_params (dict) –

  • osns (Iterable[Iterable[str]]) –

  • NP (Union[int, Iterable[int]]) –

  • NPreLN (int) –

  • NPosteLN (Union[int, Iterable[int]]) –

  • NPostiLN (Union[int, Iterable[int]]) –

  • prelns (Iterable[str]) –

  • postelns (Iterable[Iterable[str]]) –

  • postilns (Iterable[Iterable[str]]) –

  • pns (Iterable[Iterable[str]]) –

  • osn_to_preln (Iterable[Iterable[float]]) –

  • osn_to_postiln (Iterable[Iterable[float]]) –

  • osn_to_posteln (Iterable[Iterable[float]]) –

  • preln_to_axt (Iterable[Iterable[float]]) –

  • axt_to_pn (Iterable[Iterable[float]]) –

  • postiln_to_pn (Iterable[Iterable[float]]) –

  • posteln_to_pn (Iterable[Iterable[float]]) –

Return type

None

NP: Union[int, Iterable[int]] = None

Number of PNs, organized by Receptor Type

NPosteLN: Union[int, Iterable[int]] = None

Number of Post-synaptic Excitatory Local Neurons, organized by Receptor Type

NPostiLN: Union[int, Iterable[int]] = None

Number of Post-synaptic Inhibitory Local Neurons, organized by Receptor Type

NPreLN: int = None

Number of Pre-synaptic Local Neurons

as_node_ids(table, source, target)[source]

Convert Routing Table’s indices to node Ids

Parameters
  • table – routing table

  • source – source node ids

  • target – target node ids

Returns

A flattenend list of all [source, target] node ids

Return type

List[List[str]]

axt_to_pn: Iterable[Iterable[float]] = None
default_axt_to_pn()[source]
default_osn_to_posteln()[source]
default_osn_to_postiln()[source]
default_osn_to_preln()[source]
default_posteln_to_pn()[source]
default_postiln_to_pn()[source]
default_preln_to_axt()[source]
property node_types

List of Recognized Node Types

property osn_alphas
property osn_axts
property osn_bsgs
property osn_otps
osn_to_posteln: Iterable[Iterable[float]] = None
osn_to_postiln: Iterable[Iterable[float]] = None
osn_to_preln: Iterable[Iterable[float]] = None
pns: Iterable[Iterable[str]] = None
posteln_to_pn: Iterable[Iterable[float]] = None
postelns: Iterable[Iterable[str]] = None
postiln_to_pn: Iterable[Iterable[float]] = None
postilns: Iterable[Iterable[str]] = None
preln_to_axt: Iterable[Iterable[float]] = None
prelns: Iterable[str] = None
property routing_tables

List of Recognized Routing Tables

set_or_assert_edges(array, new_array, size)[source]
exception eoscircuits.alcircuits.circuit.ALException[source]

Bases: Exception

Base Antennal Lobe Exception

eoscircuits.alcircuits.model module

class eoscircuits.alcircuits.model.Alpha[source]

Bases: object

params = {'ad': 12.19, 'ar': 12.5, 'gmax': 0.1}
class eoscircuits.alcircuits.model.LeakyIAF[source]

Bases: object

params = {'c': 1.5, 'r': 0.2, 'vr': -0.07, 'vt': -0.025}
class eoscircuits.alcircuits.model.OSNAxt[source]

Bases: object

params = {'bias': 1.0, 'gain': 1.0, 'gamma': 100.0}
class eoscircuits.alcircuits.model.OSNAxt2[source]

Bases: object

params = {'bias': 1.0, 'gain': 1.0}
class eoscircuits.alcircuits.model.PN[source]

Bases: object

params = {'threshold': 0.0}
class eoscircuits.alcircuits.model.PostLN[source]

Bases: object

params = {'C': 0.01, 'C1': 4.7, 'ICR': 80.74, 'L': 0.1, 'R': 3.0, 'RC': 0.047, 'a1': 10.066, 'a2': 0.12, 'b1': 0.11, 'k': 2.0, 'polarity': 1.0, 's1': 0.12, 's2': 0.05, 'tau': 96.61835748792272}
class eoscircuits.alcircuits.model.PreLN[source]

Bases: object

params = {'dummy': 0.0}

Module contents

Antennal Lobe Circuit

This module supports:

  1. Changing parameter values of Biological Spike Generators (BSGs) associated with each of the Local and Projection Neurons,

  2. Changing the number and connectivity of Projection Neurons innervating a given AL Glomerulus,

  3. Changing the number and connectivity of Local Neurons in the Predictive Coding and ON-OFF circuits of the AL