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
67cc9e10
Commit
67cc9e10
authored
Mar 30, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncate "filament used" amount to 0.01 precision
parent
cda81f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pronterface.py
printrun/pronterface.py
+1
-1
No files found.
printrun/pronterface.py
View file @
67cc9e10
...
@@ -1373,7 +1373,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1373,7 +1373,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def
output_gcode_stats
(
self
):
def
output_gcode_stats
(
self
):
gcode
=
self
.
fgcode
gcode
=
self
.
fgcode
print
gcode
.
filament_length
,
_
(
"mm of filament used in this print"
)
print
_
(
"
%.2
fmm of filament used in this print"
)
%
gcode
.
filament_length
print
_
(
"The print goes:"
)
print
_
(
"The print goes:"
)
print
_
(
"- from
%.2
f mm to
%.2
f mm in X and is
%.2
f mm wide"
)
%
(
gcode
.
xmin
,
gcode
.
xmax
,
gcode
.
width
)
print
_
(
"- from
%.2
f mm to
%.2
f mm in X and is
%.2
f mm wide"
)
%
(
gcode
.
xmin
,
gcode
.
xmax
,
gcode
.
width
)
print
_
(
"- from
%.2
f mm to
%.2
f mm in Y and is
%.2
f mm deep"
)
%
(
gcode
.
ymin
,
gcode
.
ymax
,
gcode
.
depth
)
print
_
(
"- from
%.2
f mm to
%.2
f mm in Y and is
%.2
f mm deep"
)
%
(
gcode
.
ymin
,
gcode
.
ymax
,
gcode
.
depth
)
...
...
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