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
7c9e076f
Commit
7c9e076f
authored
Dec 11, 2011
by
Clarence Risher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpler code for build dimensions, remove debugging prints
parent
5d4aad0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
pronterface.py
pronterface.py
+2
-12
No files found.
pronterface.py
View file @
7c9e076f
...
...
@@ -84,11 +84,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
]
self
.
custombuttons
=
[]
self
.
btndict
=
{}
print
self
.
settings
.
build_dimensions
self
.
parse_cmdline
(
sys
.
argv
[
1
:])
print
self
.
settings
.
build_dimensions
self
.
build_dimensions_list
=
self
.
get_build_dimensions
(
self
.
settings
.
build_dimensions
)
print
self
.
build_dimensions_list
customdict
=
{}
try
:
execfile
(
"custombtn.txt"
,
customdict
)
...
...
@@ -1480,15 +1477,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
"[^
\
d+-]*([+-]
\
d+)?"
+
# Y corner coordinate
"[^
\
d+-]*([+-]
\
d+)?"
# Z corner coordinate
,
bdim
)
.
groups
()
print
bdl
bdl_float
=
[
200.0
if
bdl
[
0
]
==
None
else
float
(
bdl
[
0
]),
200.0
if
bdl
[
1
]
==
None
else
float
(
bdl
[
1
]),
100.0
if
bdl
[
2
]
==
None
else
float
(
bdl
[
2
]),
0.0
if
bdl
[
3
]
==
None
else
float
(
bdl
[
3
]),
0.0
if
bdl
[
4
]
==
None
else
float
(
bdl
[
4
]),
0.0
if
bdl
[
5
]
==
None
else
float
(
bdl
[
5
]),
]
defaults
=
[
200
,
200
,
100
,
0
,
0
,
0
]
bdl_float
=
[
float
(
value
)
if
value
else
defaults
[
i
]
for
i
,
value
in
enumerate
(
bdl
)]
return
bdl_float
...
...
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