Skip to content

Commit

Permalink
refs #5716. Python API extended.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Aug 13, 2012
1 parent cc62b6e commit 8550c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Code/Mantid/Framework/PythonAPI/src/api_exports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ using namespace boost::python;
.def("getNames", &API::WorkspaceGroup::getNames)
.def("add", &API::WorkspaceGroup::add)
.def("remove", &API::WorkspaceGroup::remove)
.def("isMultiPeriod", &API::WorkspaceGroup::isMultiperiod)
;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace
}
}

void export_WorkspaceGroup()
void export_WorkspaceGroup()
{
REGISTER_SHARED_PTR_TO_PYTHON(WorkspaceGroup);

Expand All @@ -40,6 +40,7 @@ void export_WorkspaceGroup()
.def("remove", &WorkspaceGroup::remove, "Remove a name from the group")
.def("getItem", &getItemAsWeakPtr, return_value_policy<Policies::upcast_returned_value>(),
"Returns the item at the given index")
.def("isMultiPeriod", &WorkspaceGroup::isMultiperiod, "Retuns true if the workspace group is multi-period")
// ------------ Operators --------------------------------
.def("__len__", &WorkspaceGroup::getNumberOfEntries)
.def("__contains__", &WorkspaceGroup::contains)
Expand Down

0 comments on commit 8550c69

Please sign in to comment.