|
101 | 101 | # The events coming from the specified columns of exc_pop population |
102 | 102 | # will be connected to the relevant neuron in driver_pop |
103 | 103 | # Starting column of the left-side column group |
104 | | -start_of_left = 0 |
| 104 | +start_of_left = 20 |
105 | 105 |
|
106 | 106 | # Last column of the left-side column group |
107 | 107 | end_of_left = n_conn |
|
110 | 110 | start_of_right = retina_resolution.value.pixels - n_conn |
111 | 111 |
|
112 | 112 | # Last column of the right-side column group |
113 | | -end_of_right = retina_resolution.value.pixels |
| 113 | +end_of_right = retina_resolution.value.pixels - 20 |
114 | 114 |
|
115 | 115 | # First row to consider in any group of pixels |
116 | 116 | # (i.e. ignore bright top lights) |
|
130 | 130 | arr = numpy.arange(retina_resolution.value.n_neurons / 2) |
131 | 131 |
|
132 | 132 | # Determines which neuron IDs are on the left group |
133 | | -id_to_left = (arr % retina_resolution.value.pixels) < end_of_left |
134 | 133 | id_to_left = ( |
135 | | - (arr // retina_resolution.value.pixels >= start_row) |
136 | | - & (arr // retina_resolution.value.pixels < end_row)) & id_to_left |
| 134 | + (arr % retina_resolution.value.pixels) >= start_of_left |
| 135 | + & (arr % retina_resolution.value.pixels) < end_of_left |
| 136 | + & (arr // retina_resolution.value.pixels >= start_row) |
| 137 | + & (arr // retina_resolution.value.pixels < end_row)) |
137 | 138 |
|
138 | 139 | # Determines which neuron IDs are on the right group |
139 | | -id_to_right = (arr % retina_resolution.value.pixels) >= start_of_right |
140 | 140 | id_to_right = ( |
141 | | - (arr // retina_resolution.value.pixels >= start_row) |
142 | | - & (arr // retina_resolution.value.pixels < end_row)) & id_to_right |
| 141 | + (arr % retina_resolution.value.pixels) >= start_of_right |
| 142 | + & (arr % retina_resolution.value.pixels) < end_of_right |
| 143 | + & (arr // retina_resolution.value.pixels >= start_row) |
| 144 | + & (arr // retina_resolution.value.pixels < end_row)) |
143 | 145 |
|
144 | 146 | # Extracts the neuron IDs to be connected to the left neuron of driver_pop |
145 | 147 | id_to_left = numpy.extract(id_to_left, arr) |
|
0 commit comments