From e79d9865f3cb64da14197d723c0c48b00e8450f9 Mon Sep 17 00:00:00 2001 From: Mathieu Doucet Date: Thu, 19 Apr 2012 16:37:03 -0400 Subject: [PATCH] Re #5042 Expose doesExist() from AnalysisDataService to python --- .../mantid/api/src/Exports/AnalysisDataService.cpp | 1 + .../WorkflowAlgorithms/src/EQSANSPatchSensitivity.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp index 19c523fe2e04..d0fabe59ad8b 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp @@ -76,6 +76,7 @@ void export_AnalysisDataService() register_ptr_to_python(); class_("AnalysisDataServiceImpl", no_init) + .def("doesExist", &AnalysisDataServiceImpl::doesExist, "Returns True if the object is found in the service.") .def("retrieve", &retrieveAsWeakPtr, return_value_policy(), "Retrieve the named object. Raises an exception if the name does not exist") .def("remove", &AnalysisDataServiceImpl::remove, "Remove a named object") diff --git a/Code/Mantid/Framework/WorkflowAlgorithms/src/EQSANSPatchSensitivity.cpp b/Code/Mantid/Framework/WorkflowAlgorithms/src/EQSANSPatchSensitivity.cpp index 7a9f4f8e6f3a..6dffd950598f 100644 --- a/Code/Mantid/Framework/WorkflowAlgorithms/src/EQSANSPatchSensitivity.cpp +++ b/Code/Mantid/Framework/WorkflowAlgorithms/src/EQSANSPatchSensitivity.cpp @@ -28,8 +28,10 @@ using namespace Geometry; void EQSANSPatchSensitivity::init() { - declareProperty(new WorkspaceProperty<>("Workspace","",Direction::InOut)); - declareProperty(new WorkspaceProperty<>("PatchWorkspace","",Direction::Input)); + declareProperty(new WorkspaceProperty<>("Workspace","",Direction::InOut), + "Input sensitivity workspace to be patched"); + declareProperty(new WorkspaceProperty<>("PatchWorkspace","",Direction::Input), + "Workspace defining the patch. Masked detectors will be patched."); declareProperty("UseLinearRegression",true, "If true, a linear regression will be used instead of computing the average"); declareProperty("OutputMessage","",Direction::Output);