Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rocolib
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
roco
rocolib
Merge requests
!9
adding nwheeledcar, centipede, and pivot car
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
adding nwheeledcar, centipede, and pivot car
jllpntg/rocolib:main
into
main
Overview
1
Commits
96
Pipelines
4
Changes
49
Closed
Jillian Pantig
requested to merge
jllpntg/rocolib:main
into
main
4 years ago
Overview
1
Commits
96
Pipelines
4
Changes
49
Expand
0
0
Merge request reports
Compare
main
version 3
89260424
3 years ago
version 2
b15bf7e9
3 years ago
version 1
2d5b4b46
4 years ago
main (base)
and
latest version
latest version
2edcab26
96 commits,
3 years ago
version 3
89260424
95 commits,
3 years ago
version 2
b15bf7e9
94 commits,
3 years ago
version 1
2d5b4b46
93 commits,
4 years ago
49 files
+
2855
−
257
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
49
Search (e.g. *.vue) (Ctrl+P)
rocolib/api/components/Component.py
+
4
−
4
Options
from
collections
import
OrderedDict
import
os
import
os
,
posixpath
import
sys
import
yaml
import
logging
@@ -135,11 +135,11 @@ class Component(Parameterized):
if
prefix
==
""
:
prefix
=
name
for
key
,
value
in
obj
.
p
arameter
s
.
items
():
for
key
,
value
in
obj
.
getP
arameter
Info
()
.
items
():
# inherit = True : inherit all parameters
if
inherit
is
True
or
key
in
inherit
:
try
:
self
.
addParameter
(
prefixString
(
prefix
,
key
),
value
.
defaultValue
,
**
value
.
spec
)
self
.
addParameter
(
prefixString
(
prefix
,
key
),
value
[
"
defaultValue
"
]
,
**
value
[
"
spec
"
]
)
except
KeyError
:
# It's ok if we try to add a parameter that already exists
pass
@@ -290,7 +290,7 @@ class Component(Parameterized):
def
toYaml
(
self
,
basedir
,
filename
):
filepath
=
os
.
path
.
join
(
basedir
,
filename
)
source
=
os
.
path
.
relpath
(
sys
.
argv
[
0
],
basedir
)
source
=
os
.
path
.
relpath
(
sys
.
argv
[
0
],
basedir
)
.
replace
(
os
.
sep
,
posixpath
.
sep
)
parameters
=
{}
for
k
,
v
in
self
.
parameters
.
items
():