Skip to content

Commit

Permalink
make ci happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz committed May 21, 2024
1 parent 0dee70b commit a13e166
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion klippy/extras/extruder_smoother.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_extruder_smoother(
try:
np = importlib.import_module("numpy")
except ImportError:
raise self.error(
raise Exception(
"Failed to import `numpy` module, make sure it was "
"installed via `~/klippy-env/bin/pip install` (refer to "
"docs/Measuring_Resonances.md for more details)."
Expand Down
6 changes: 3 additions & 3 deletions klippy/extras/motion_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_trapq_position(self, print_time):

def _process_batch(self, eventtime):
qtime = self.last_batch_msg[0] + min(self.last_batch_msg[1], 0.100)
data, cdata = self.extract_trapq(qtime, NEVER_TIME)
data, cdata = self.extract_trapq(qtime, NEVER_TIME) # noqa: F821
d = [
(
m.print_time,
Expand Down Expand Up @@ -245,7 +245,7 @@ def _connect(self):
# Shutdown handling
def _dump_shutdown(self, eventtime):
# Log stepper queue_steps on mcu that started shutdown (if any)
shutdown_time = NEVER_TIME
shutdown_time = NEVER_TIME # noqa: F821
for dstepper in self.steppers.values():
mcu = dstepper.mcu_stepper.get_mcu()
sc = mcu.get_shutdown_clock()
Expand All @@ -257,7 +257,7 @@ def _dump_shutdown(self, eventtime):
end_clock = sc + clock_100ms
data, cdata = dstepper.get_step_queue(start_clock, end_clock)
dstepper.log_steps(data)
if shutdown_time >= NEVER_TIME:
if shutdown_time >= NEVER_TIME: # noqa: F821
return
# Log trapqs around time of shutdown
for dtrapq in self.trapqs.values():
Expand Down
2 changes: 1 addition & 1 deletion klippy/stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2016-2021 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import math, logging, collections
import math, collections
import chelper, msgproto


Expand Down
2 changes: 1 addition & 1 deletion scripts/get_extruder_smoother.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# This file may be distributed under the terms of the GNU GPLv3 license.

import optparse, importlib, math, os, sys
import optparse, importlib, os, sys
import numpy as np, matplotlib

sys.path.append(
Expand Down
4 changes: 2 additions & 2 deletions scripts/graph_motion_extruder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Copyright (C) 2020-2024 Dmitry Butyugin <dmbutyugin@google.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import optparse, datetime, importlib, math, os, sys
import optparse, importlib, math, os, sys
import numpy as np
import matplotlib

Expand Down Expand Up @@ -296,7 +296,7 @@ def calc_spring_raw(positions, freq, damping_ratio):
def calc_spring_double_weighted(positions, freq, smooth_time):
offset = time_to_index(smooth_time * 0.25)
sa = (INV_SEG_TIME / (offset * freq * 2.0 * math.pi)) ** 2
ra = 2.0 * damping_ratio * math.sqrt(sa)
ra = 2.0 * damping_ratio * math.sqrt(sa) # noqa: F821
out = [0.0] * len(positions)
for i in indexes(positions):
out[i] = (
Expand Down
File renamed without changes.

0 comments on commit a13e166

Please sign in to comment.