File tree Expand file tree Collapse file tree
examples/external_devices_examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 112112# Last column of the right-side column group
113113end_of_right = retina_resolution .value .pixels
114114
115+ # First row to consider in any group of pixels (i.e. ignore bright top lights)
116+ start_row = 30
117+
118+ # Last row to consider in any group of pixels (i.e. ignore bright bottom lights)
119+ end_row = retina_resolution .value .pixels - 30
120+
115121# Connection weights for this connection list
116122w_conn = 0.2
117123
123129
124130# Determines which neuron IDs are on the left group
125131id_to_left = (arr % retina_resolution .value .pixels ) < end_of_left
132+ id_to_left = (
133+ (arr // retina_resolution .value .pixels >= start_row )
134+ & (arr // retina_resolution .value .pixels < end_row )) & id_to_left
126135
127136# Determines which neuron IDs are on the right group
128137id_to_right = (arr % retina_resolution .value .pixels ) >= start_of_right
138+ id_to_right = (
139+ (arr // retina_resolution .value .pixels >= start_row )
140+ & (arr // retina_resolution .value .pixels < end_row )) & id_to_right
129141
130142# Extracts the neuron IDs to be connected to the left neuron of driver_pop
131143id_to_left = numpy .extract (id_to_left , arr )
You can’t perform that action at this time.
0 commit comments