🎨 Format Python code with psf/black

pull/278/head
pppalain 2025-06-28 15:49:46 +00:00 zatwierdzone przez github-actions[bot]
rodzic ea67fbf755
commit 2fedd00e3e
4 zmienionych plików z 14 dodań i 9 usunięć

Wyświetl plik

@ -694,13 +694,14 @@ class Creator(nc.Creator):
# self.s.set(s, self.SPINDLE_CW(), self.SPINDLE_CCW())
# else:
# self.s.set(s, self.SPINDLE_CCW(), self.SPINDLE_CW())
def spindle(self, s, clockwise): # EXPERIMENTAL -- grbl only
def spindle(self, s, clockwise): # EXPERIMENTAL -- grbl only
# Get machine settings
machine = bpy.context.scene.cam_machine
if (machine.spindle_slow_start_enable and
s > machine.spindle_min + machine.spindle_slow_start_skip_threshold):
if (
machine.spindle_slow_start_enable
and s > machine.spindle_min + machine.spindle_slow_start_skip_threshold
):
# Generate slow start sequence
steps = machine.spindle_slow_start_steps
total_time = machine.spindle_slow_start_total_time

Wyświetl plik

@ -27,7 +27,6 @@ def register():
def unregister():
for fabex_icons in preview_collections.values():
bpy.utils.previews.remove(fabex_icons)
preview_collections.clear()

Wyświetl plik

@ -109,9 +109,14 @@ class CAM_MACHINE_Panel(CAMParentPanel, Panel):
subcol = col.column(align=True)
subcol.enabled = self.machine.spindle_slow_start_enable
subcol.prop(self.machine, "spindle_slow_start_steps", text="Steps")
subcol.prop(self.machine, "spindle_slow_start_skip_threshold", text="Skip Small Increase (RPM)")
subcol.prop(self.machine, "spindle_slow_start_total_time", text="Total Time (sec)")
subcol.prop(
self.machine,
"spindle_slow_start_skip_threshold",
text="Skip Small Increase (RPM)",
)
subcol.prop(
self.machine, "spindle_slow_start_total_time", text="Total Time (sec)"
)
# Gcode Options
if self.level >= 1:

Wyświetl plik

@ -1 +1 @@
__version__=(1,0,67)
__version__ = (1, 0, 67)