Skip to content

Commit

Permalink
Re #5042 Expose doesExist() from AnalysisDataService to python
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Apr 19, 2012
1 parent 1f8f691 commit e79d986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ void export_AnalysisDataService()
register_ptr_to_python<DataItem_wptr>();

class_<AnalysisDataServiceImpl,boost::noncopyable>("AnalysisDataServiceImpl", no_init)
.def("doesExist", &AnalysisDataServiceImpl::doesExist, "Returns True if the object is found in the service.")
.def("retrieve", &retrieveAsWeakPtr, return_value_policy<Policies::upcast_returned_value>(),
"Retrieve the named object. Raises an exception if the name does not exist")
.def("remove", &AnalysisDataServiceImpl::remove, "Remove a named object")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e79d986

Please sign in to comment.