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
8d805e56
Commit
8d805e56
authored
Nov 05, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display estimated duration when loading GCode in pronsole #445
parent
f6fbb75d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pronsole.py
printrun/pronsole.py
+2
-1
No files found.
printrun/pronsole.py
View file @
8d805e56
...
@@ -898,7 +898,8 @@ class pronsole(cmd.Cmd):
...
@@ -898,7 +898,8 @@ class pronsole(cmd.Cmd):
self
.
logError
(
"File not found!"
)
self
.
logError
(
"File not found!"
)
return
return
self
.
load_gcode
(
filename
)
self
.
load_gcode
(
filename
)
self
.
log
(
"Loaded
%
s,
%
d lines."
%
(
filename
,
len
(
self
.
fgcode
)))
self
.
log
(
_
(
"Loaded
%
s,
%
d lines."
)
%
(
filename
,
len
(
self
.
fgcode
)))
self
.
log
(
_
(
"Estimated duration:
%
s"
)
%
self
.
fgcode
.
estimate_duration
())
def
load_gcode
(
self
,
filename
):
def
load_gcode
(
self
,
filename
):
self
.
fgcode
=
gcoder
.
GCode
(
open
(
filename
,
"rU"
),
self
.
fgcode
=
gcoder
.
GCode
(
open
(
filename
,
"rU"
),
...
...
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