Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove @UnusedVariable #44

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spynnaker_visualisers/raytrace/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def reshape(self, width, height):
gl.viewport(0, 0, width, height)
gl.load_identity()

def special_keyboard_down(self, key, x, y): # @UnusedVariable
def special_keyboard_down(self, key, x, y):
if key == glut.keyUp:
self._turn_down = -1
elif key == glut.keyDown:
Expand All @@ -97,13 +97,13 @@ def special_keyboard_down(self, key, x, y): # @UnusedVariable
elif key == glut.keyLeft:
self._rolling = 1

def special_keyboard_up(self, key, x, y): # @UnusedVariable
def special_keyboard_up(self, key, x, y):
if key == glut.keyUp or key == glut.keyDown:
self._turn_down = 0
elif key == glut.keyLeft or key == glut.keyRight:
self._rolling = 0

def keyboard_down(self, key, x, y): # @UnusedVariable
def keyboard_down(self, key, x, y):
if key == 'w':
self._moving = 1
elif key == 's':
Expand All @@ -119,7 +119,7 @@ def keyboard_down(self, key, x, y): # @UnusedVariable
elif key == '\x1b': # Escape
sys.exit()

def keyboard_up(self, key, x, y): # @UnusedVariable
def keyboard_up(self, key, x, y):
if key == 'w' or key == 's':
self._moving = 0
elif key == 'a' or key == 'd':
Expand Down
8 changes: 4 additions & 4 deletions spynnaker_visualisers/sudoku/sudoku_visualiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ def _init_cb(self, label, n_neurons, run_time_ms, machine_time_step_ms):
while not self.user_pressed_start:
self.start_condition.wait()

def _start_cb(self, *args): # @UnusedVariable
def _start_cb(self, *args):
with self.start_condition:
self.simulation_started = True

def _receive_cb(self, label, time, spikes=None): # @UnusedVariable
def _receive_cb(self, label, time, spikes=None):
if spikes is None:
spikes = []
with self.point_mutex:
Expand All @@ -161,7 +161,7 @@ def main_loop(self):
INIT_WINDOW_X, INIT_WINDOW_Y, FRAMES_PER_SECOND)

@overrides(GlutFramework.display)
def display(self, dTime): # @UnusedVariable
def display(self, dTime):
self._start_display()

cell_width = (self.window_width - 2 * WINDOW_BORDER) / 9.0
Expand Down Expand Up @@ -211,7 +211,7 @@ def reshape(self, width, height):
load_identity()

@overrides(GlutFramework.keyboard_down)
def keyboard_down(self, key, x, y): # @UnusedVariable
def keyboard_down(self, key, x, y):
if key == 32 or key == ' ':
with self.start_condition:
if not self.user_pressed_start:
Expand Down