Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
90e1b2a5
Commit
90e1b2a5
authored
13 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
Task #514
Added function adoptCollection
parent
2ce32f42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/pyparameterset/src/pyparameterset.cc
+10
-1
10 additions, 1 deletion
LCS/pyparameterset/src/pyparameterset.cc
with
10 additions
and
1 deletion
LCS/pyparameterset/src/pyparameterset.cc
+
10
−
1
View file @
90e1b2a5
...
@@ -84,6 +84,9 @@ namespace LOFAR {
...
@@ -84,6 +84,9 @@ namespace LOFAR {
PyParameterSet
makeSubset
(
const
string
&
baseKey
,
const
string
&
prefix
)
PyParameterSet
makeSubset
(
const
string
&
baseKey
,
const
string
&
prefix
)
{
return
ParameterSet
::
makeSubset
(
baseKey
,
prefix
);
}
{
return
ParameterSet
::
makeSubset
(
baseKey
,
prefix
);
}
void
adoptCollection
(
const
PyParameterSet
&
parset
,
const
string
&
prefix
)
{
return
ParameterSet
::
adoptCollection
(
parset
,
prefix
);
}
PyParameterValue
get
(
const
string
&
key
)
const
PyParameterValue
get
(
const
string
&
key
)
const
{
return
ParameterSet
::
get
(
key
);
}
{
return
ParameterSet
::
get
(
key
);
}
...
@@ -238,7 +241,13 @@ namespace LOFAR {
...
@@ -238,7 +241,13 @@ namespace LOFAR {
.
def
(
"adoptFile"
,
&
ParameterSet
::
adoptFile
,
.
def
(
"adoptFile"
,
&
ParameterSet
::
adoptFile
,
(
boost
::
python
::
arg
(
"filename"
),
(
boost
::
python
::
arg
(
"filename"
),
boost
::
python
::
arg
(
"prefix"
)
=
""
),
boost
::
python
::
arg
(
"prefix"
)
=
""
),
"Add the parameters in the parset file with the given prefix."
)
"Add the parameters from a parset file and prefix their names "
"with the given prefix."
)
.
def
(
"adoptCollection"
,
&
PyParameterSet
::
adoptCollection
,
(
boost
::
python
::
arg
(
"parameterset"
),
boost
::
python
::
arg
(
"prefix"
)
=
""
),
"Add the parameters from a parset object and prefix their names "
"with the given prefix."
)
.
def
(
"writeFile"
,
&
ParameterSet
::
writeFile
,
.
def
(
"writeFile"
,
&
ParameterSet
::
writeFile
,
(
boost
::
python
::
arg
(
"filename"
),
(
boost
::
python
::
arg
(
"filename"
),
boost
::
python
::
arg
(
"append"
)
=
false
),
boost
::
python
::
arg
(
"append"
)
=
false
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment