dump_layer_nodes

Contents

dump_layer_nodes#

class brainpy.state.spatial.dump_layer_nodes(sim, pop, outname)[source]#

Write each node’s local index + coordinates to outname (NEST DumpLayerNodes).

One whitespace-separated line per node: idx x y [z] (population-local index; coordinates in micrometre magnitude, ascending node order).

Parameters:
  • sim (Simulator) – The simulator holding the population’s positions.

  • pop (NodeView) – A population/view created with create(positions=...).

  • outname (str) – Path of the text file to write.

Returns:

The written text (also persisted to outname), for direct assertion.

Return type:

str