Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
c1f315d6
Commit
c1f315d6
authored
Nov 04, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add argument to gcoder.GCode.append to opt out storing
parent
c6d74a15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
gcoder.py
printrun/gcoder.py
+5
-4
No files found.
printrun/gcoder.py
View file @
c1f315d6
...
...
@@ -144,7 +144,7 @@ class GCode(object):
def
__iter__
(
self
):
return
self
.
lines
.
__iter__
()
def
append
(
self
,
command
):
def
append
(
self
,
command
,
store
=
True
):
command
=
command
.
strip
()
if
not
command
:
return
...
...
@@ -152,6 +152,7 @@ class GCode(object):
self
.
lines
.
append
(
gline
)
self
.
_preprocess_lines
([
gline
])
self
.
_preprocess_extrusion
([
gline
])
if
store
:
self
.
append_layer
.
append
(
gline
)
self
.
layer_idxs
.
append
(
self
.
append_layer_id
)
self
.
line_idxs
.
append
(
len
(
self
.
append_layer
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment