Skip to content

Commit fd03112

Browse files
ekapadiKort Travis
andauthored
Expose ExperimentInfo::populateInstrumentParameters (#39184)
* Expose 'ExperimentInfo::populateInstrumentParameters' to the Python api. * Added release note. --------- Co-authored-by: Kort Travis <traviska@ornl.gov>
1 parent ba3772d commit fd03112

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,7 @@ void export_ExperimentInfo() {
119119
":class:`~mantid.geometry.ComponentInfo` "
120120
"object.")
121121
.def("setSample", setSample, args("self", "sample"))
122-
.def("setRun", setRun, args("self", "run"));
122+
.def("setRun", setRun, args("self", "run"))
123+
.def("populateInstrumentParameters", &ExperimentInfo::populateInstrumentParameters, (arg("self")),
124+
"Update parameters in the instrument-parameter map. Logs must be loaded before calling this method");
123125
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Exposed `ExperimentInfo.populateInstrumentParameters` to the Python api. This will facilitate the update of parameterized instruments from Python, allowing parameters to be directly transferred as properties without converting to and from `string`.

0 commit comments

Comments
 (0)