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
02f14d50
Commit
02f14d50
authored
Nov 28, 2011
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comment stripping in duration estimation
parent
db669df5
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
292 additions
and
59 deletions
+292
-59
pronsole.py
pronsole.py
+2
-1
stlview.py
stlview.py
+290
-58
No files found.
pronsole.py
View file @
02f14d50
...
@@ -94,7 +94,8 @@ def estimate_duration(g):
...
@@ -94,7 +94,8 @@ def estimate_duration(g):
feedrate
=
0
feedrate
=
0
X_last_position
=
0
X_last_position
=
0
Y_last_position
=
0
Y_last_position
=
0
for
i
.
split
(
";"
)[
0
]
in
g
:
for
i
in
g
:
i
=
i
.
split
(
";"
)[
0
]
if
"G1"
in
i
and
(
"X"
in
i
or
"Y"
in
i
or
"F"
in
i
or
"E"
in
i
):
if
"G1"
in
i
and
(
"X"
in
i
or
"Y"
in
i
or
"F"
in
i
or
"E"
in
i
):
parts
=
i
.
split
(
" "
)
parts
=
i
.
split
(
" "
)
X
=
get_coordinate_value
(
"X"
,
parts
[
1
:])
X
=
get_coordinate_value
(
"X"
,
parts
[
1
:])
...
...
stlview.py
View file @
02f14d50
This diff is collapsed.
Click to expand it.
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