Skip to content

Commit

Permalink
Re #7272. Adding the alias "Subtract" to the "Minus" algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jun 10, 2013
1 parent 5e50a8a commit 34b868c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/Algorithms/inc/MantidAlgorithms/Minus.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ namespace Mantid
virtual ~Minus() {};
/// Algorithm's name for identification overriding a virtual method
virtual const std::string name() const { return "Minus";}
/// Algorithm's alias for identification overriding a virtual method
virtual const std::string alias() const;
/// Algorithm's version for identification overriding a virtual method
virtual int version() const { return 1;}

Expand Down
6 changes: 5 additions & 1 deletion Code/Mantid/Framework/Algorithms/src/Minus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ namespace Mantid
this->setWikiSummary("The Minus algorithm will subtract the data values and calculate the corresponding [[Error Values|error values]] for two compatible workspaces.");
this->setOptionalMessage("The Minus algorithm will subtract the data values and calculate the corresponding error values for two compatible workspaces.");
}


const std::string Minus::alias() const
{
return "Subtract";
}

void Minus::performBinaryOperation(const MantidVec& lhsX, const MantidVec& lhsY, const MantidVec& lhsE,
const MantidVec& rhsY, const MantidVec& rhsE, MantidVec& YOut, MantidVec& EOut)
Expand Down

0 comments on commit 34b868c

Please sign in to comment.