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 131131
132132# Determines which neuron IDs are on the left group
133133id_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 ))
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 ))
138138
139139# Determines which neuron IDs are on the right group
140140id_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 ))
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 ))
145145
146146# Extracts the neuron IDs to be connected to the left neuron of driver_pop
147147id_to_left = numpy .extract (id_to_left , arr )
You can’t perform that action at this time.
0 commit comments