dump_layer_connections#
- class brainpy.state.spatial.dump_layer_connections(sim, source, target, outname)[source]#
Write each realized edge’s endpoints, weight, delay and displacement (NEST
DumpLayerConnections).One whitespace-separated line per edge:
src tgt weight delay dx dy [dz]where(dx, dy[, dz]) = target_pos - source_pos(the source-anchored displacement). Weight is in pA magnitude, delay in ms magnitude, coordinates in micrometres.- Parameters:
sim (
Simulator) – The simulator holding the realized connections and positions.source (
NodeView) – The source and target populations/views (created withpositions=...).target (
NodeView) – The source and target populations/views (created withpositions=...).outname (
str) – Path of the text file to write.
- Returns:
The written text (also persisted to
outname), for direct assertion.- Return type: