文档指定为了创建connection,需要source和dest (分别为cell_global_label和cell_local_label类型)。对于电缆单元之间的连接,这很好,因为您可以在它们的decor上放置标签,然后在cell_global_label中使用这些标签,但是如何从spike_source_cell连接?
以下是我对电缆电池的处理方法:
arbor.connection(
arbor.cell_global_label(gid, "soma_spike_detector"),
arbor.cell_local_label("soma_synapse"),
1,
0.1
)但是,由于我无法在spike_source_cell上创建标签,它引发以下错误:
RuntimeError: Model building error on cell 26: connection endpoint label "soma_spike_detector": label does not exist.发布于 2021-09-14 15:36:12
尖峰源细胞上的文档提到:
有一个内置源,当从单元格形成连接时,需要给它一个标签;
因此,您可以使用在构造spike_source_cells时给出的标签作为构造cell_global_label时的标签。
# When constructing the source cell
arbor.spike_source_cell(
"spike_source",
arbor.explicit_schedule([5, 10, 12])
)
# In the recipe's `connections_on`:
arbor.connection(
arbor.cell_global_label(gid, "spike_source"),
arbor.cell_local_label("soma_synapse"),
1,
0.1
)https://stackoverflow.com/questions/69180707
复制相似问题