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
ffff4b33
Commit
ffff4b33
authored
Mar 29, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow deferred processing of gcoder.GCode objects
parent
7ee9d169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gcoder.py
printrun/gcoder.py
+6
-1
No files found.
printrun/gcoder.py
View file @
ffff4b33
...
@@ -188,7 +188,12 @@ class GCode(object):
...
@@ -188,7 +188,12 @@ class GCode(object):
return
len
(
self
.
all_zs
)
return
len
(
self
.
all_zs
)
layers_count
=
property
(
_get_layers_count
)
layers_count
=
property
(
_get_layers_count
)
def
__init__
(
self
,
data
=
None
,
home_pos
=
None
,
layer_callback
=
None
):
def
__init__
(
self
,
data
=
None
,
home_pos
=
None
,
layer_callback
=
None
,
deferred
=
False
):
if
not
deferred
:
self
.
prepare
(
data
,
home_pos
,
layer_callback
)
def
prepare
(
self
,
data
=
None
,
home_pos
=
None
,
layer_callback
=
None
):
self
.
home_pos
=
home_pos
self
.
home_pos
=
home_pos
if
data
:
if
data
:
self
.
lines
=
[
Line
(
l2
)
for
l2
in
self
.
lines
=
[
Line
(
l2
)
for
l2
in
...
...
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