✨ analysis: New --layers parameter
Analysis subcommand now has a new --layers parameter that allows us to export information on all detected layers. Also recognizes zhop. Helpful for comparing analysis with gcv results, see #4086
This commit is contained in:
1 parent
7bbecc9587
commit
643dcba468
2 files changed
+52
-5
No files matched your search
@@ -77,6 +77,7 @@ def util():
|
||||
@click.option("--g90-extruder", "g90_extruder", is_flag=True)
|
||||
@click.option("--bed-z", "bedz", type=float, default=0)
|
||||
@click.option("--progress", "progress", is_flag=True)
|
||||
@click.option("--layers", "layers", is_flag=True)
|
||||
@click.argument("path", type=click.Path())
|
||||
def gcode_command(
|
||||
path,
|
||||
@@ -90,6 +91,7 @@ def gcode_command(
|
||||
g90_extruder,
|
||||
bedz,
|
||||
progress,
|
||||
layers,
|
||||
):
|
||||
"""Runs a GCODE file analysis."""
|
||||
|
||||
@@ -125,7 +127,7 @@ def gcode_command(
|
||||
def progress_callback(percentage):
|
||||
click.echo("PROGRESS:{}".format(percentage))
|
||||
|
||||
interpreter = gcode(progress_callback=progress_callback)
|
||||
interpreter = gcode(progress_callback=progress_callback, incl_layers=layers)
|
||||
|
||||
interpreter.load(
|
||||
path,
|
||||
|
||||
Reference in new issue
Block a user