Skip to content

Commit

Permalink
Comment ot checkGroups methods in python. Refs #9353
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiSavici committed Apr 25, 2014
1 parent 15a400c commit cf7343f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Expand Up @@ -68,9 +68,9 @@ namespace Mantid
/// Allow the cancel method to be overridden
virtual void cancel();
/// A return of false will allow processing workspace groups as a whole
virtual bool checkGroups();
//virtual bool checkGroups();
/// A default value for checkGroups, chosen if there is no override
bool checkGroupsDefault();
//bool checkGroupsDefault();
/// Returns the validateInputs result of the algorithm.
std::map<std::string, std::string> validateInputs();
///@}
Expand Down
Expand Up @@ -51,7 +51,7 @@ void export_leaf_classes()
.def("fromString", &Algorithm::fromString, "Initialize the algorithm from a string representation")
.staticmethod("fromString")

.def("checkGroups",&PythonAlgorithm::checkGroups,"process groups ")
//.def("checkGroups",&PythonAlgorithm::checkGroups,"process groups ")
.def("setOptionalMessage", &Algorithm::setOptionalMessage)
.def("createChildAlgorithm", &Algorithm::createChildAlgorithm,
(arg("name"),arg("startProgress")=-1.0,arg("endProgress")=-1.0,
Expand Down
Expand Up @@ -70,21 +70,21 @@ namespace Mantid
* Returns checkGroups. If false, workspace groups will be treated as a whole
* If true, the algorithm will act on each component of the workspace group individually
*/
template<typename BaseAlgorithm>
/* template<typename BaseAlgorithm>
bool AlgorithmAdapter<BaseAlgorithm>::checkGroups()
{
return CallMethod0<bool>::dispatchWithDefaultReturn(getSelf(), "checkGroups", checkGroupsDefault());
}

*/
/**
* Returns the default checkGroup
*/
template<typename BaseAlgorithm>
/* template<typename BaseAlgorithm>
bool AlgorithmAdapter<BaseAlgorithm>::checkGroupsDefault()
{
return true;
}

*/
/**
* Returns the category of the algorithm. If not overridden
* it returns "AlgorithmAdapter"
Expand Down

0 comments on commit cf7343f

Please sign in to comment.