Multiple Monitors in different rows

Hello everyone,

I’m new here and also pretty new at programming. I am doing my master thesis on snake’s Infra-red map formation using Brian2.
The main Idea behind my project is to implement a specific input and connect it to different neuron layers with different stdp-Synapses.
Now the tricky part…, In order to create a 2 Dimensional monitor (Detector) Layer, I have to use 10 detectors in 10 different rows (layers) and I’m not sure how to do it.
The main Idea is to look at the firing rates from all the monitors compared to time and each Detector.

Does anyone has a piece of advice or a suggestion on how to do it?

Thank you very much in advance!
Iris H.

If you have an N by M 2d group of neurons, just create a single group with N*M neurons. Then neuron index i has 2d position (int(i/M), i%M).

Just do add to @dan’s reply: you might be interested in this example in the documentation: Example: spatial_connections — Brian 2 2.4.2 documentation It uses neurons in a 2D grid with the approach Dan described, but more “biological” by using positions/distances in µm instead of abstract row/column indices.