Skip to content

Commit a8cad7e

Browse files
committed
Fix brackets
1 parent 192af21 commit a8cad7e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

examples/external_devices_examples/pushbot_light_follower.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,17 @@
131131

132132
# Determines which neuron IDs are on the left group
133133
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))
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
140140
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))
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
147147
id_to_left = numpy.extract(id_to_left, arr)

0 commit comments

Comments
 (0)