Skip to content
Snippets Groups Projects
Commit 90e1b2a5 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

Task #514

Added function adoptCollection
parent 2ce32f42
No related branches found
No related tags found
No related merge requests found
...@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment