def get_component():

    # Create a model, composed of an iaf neuron, and
    iaf_2coba_model = al.ComponentClass(
        name="iaf_1coba",
        subnodes={"iaf": iaf.get_component(),
                  "cobaExcit": coba_synapse.get_component()})

    # Connections have to be setup as strings, because we are deep-copying objects.
    iaf_2coba_model.connect_ports("iaf.V", "cobaExcit.V")
    iaf_2coba_model.connect_ports("cobaExcit.I", "iaf.ISyn")

    return iaf_2coba_model
示例#2
0
def get_component():

    # Create a model, composed of an iaf neuron, and
    iaf_2coba_model = ComponentClass(name="iaf_1coba",
                                     subnodes={
                                         "iaf": iaf.get_component(),
                                         "cobaExcit":
                                         coba_synapse.get_component()
                                     })

    # Connections have to be setup as strings, because we are deep-copying objects.
    iaf_2coba_model.connect_ports("iaf.V", "cobaExcit.V")
    iaf_2coba_model.connect_ports("cobaExcit.I", "iaf.ISyn")

    return iaf_2coba_model
示例#3
0
def get_component():
    # Create a model, composed of an iaf neuron, and
    iaf_nmda_model = ComponentClass(
        name="iaf_2coba",
        subnodes={"iaf":     iaf.get_component(),
                  "nmda":    nmda.get_component(),
                  'cobaExcit': coba_synapse.get_component()
                      })

    iaf_nmda_model.connect_ports("iaf.V", "cobaExcit.V")
    iaf_nmda_model.connect_ports("iaf.V", "nmda.V")
    iaf_nmda_model.connect_ports("cobaExcit.I", "iaf.ISyn")
    iaf_nmda_model.connect_ports("nmda.I", "iaf.ISyn")

    return iaf_nmda_model
示例#4
0
def get_component():

    # Create a model, composed of an iaf neuron, and
    iaf_3coba_model = ComponentClass(name="iaf_3coba",
                                        subnodes={"iaf": iaf.get_component(),
                                                  "AMPA":  coba_synapse.get_component(),
                                                  "GABAa": coba_synapse.get_component(),
                                                  "GABAb":  coba_synapse.get_component(),
                                                  })

    # Connections have to be setup as strings, because we are deep-copying objects.
    iaf_3coba_model.connect_ports("iaf.V", "AMPA.V")
    iaf_3coba_model.connect_ports("iaf.V", "GABAa.V")
    iaf_3coba_model.connect_ports("iaf.V", "GABAb.V")
    iaf_3coba_model.connect_ports("AMPA.I", "iaf.ISyn")
    iaf_3coba_model.connect_ports("GABAa.I", "iaf.ISyn")
    iaf_3coba_model.connect_ports("GABAb.I", "iaf.ISyn")

    return iaf_3coba_model