Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pyMKcam
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
pyMKcam
Commits
98065231
Commit
98065231
authored
Jul 19, 2012
by
Lars Kruse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused "get_parameters" function
parent
9e8a234e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
ParameterGroupManager.py
pycam/Plugins/ParameterGroupManager.py
+1
-10
No files found.
pycam/Plugins/ParameterGroupManager.py
View file @
98065231
...
...
@@ -30,7 +30,6 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
def
setup
(
self
):
self
.
_groups
=
{}
self
.
core
.
set
(
"get_parameters"
,
self
.
get_parameters
)
self
.
core
.
set
(
"get_parameter_values"
,
self
.
get_parameter_values
)
self
.
core
.
set
(
"set_parameter_values"
,
self
.
set_parameter_values
)
self
.
core
.
set
(
"get_parameter_sets"
,
self
.
get_parameter_sets
)
...
...
@@ -46,7 +45,7 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
return
True
def
teardown
(
self
):
for
name
in
(
"
get_parameters"
,
"
set_parameter_values"
,
for
name
in
(
"set_parameter_values"
,
"get_parameter_values"
,
"get_parameter_sets"
,
"register_parameter_set"
,
"register_parameter_group"
,
"register_parameter"
,
"unregister_parameter_set"
,
...
...
@@ -123,14 +122,6 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
group
[
"parameters"
][
name
]
=
{
"name"
:
name
,
"control"
:
control
,
"get_func"
:
get_func
,
"set_func"
:
set_func
}
def
get_parameters
(
self
,
group_name
):
if
not
group_name
in
self
.
_groups
:
self
.
log
.
info
(
"Unknown parameter group:
%
s"
%
group_name
)
return
[]
result
=
{}
group
=
self
.
_groups
[
group_name
]
return
list
(
group
[
"parameters"
]
.
values
)
def
get_parameter_values
(
self
,
group_name
):
if
not
group_name
in
self
.
_groups
:
self
.
log
.
info
(
"Unknown parameter group:
%
s"
%
group_name
)
...
...
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