Skip to content

Commit 8e1542e

Browse files
committed
Refactor Fredrikze Algorithm SpinStates Implementation
- Renamed the input and output spin states - refactored tests to eliminate code duplication - added an helper function to fix crash which happens when user enter pp, aa as spinstates - improved code based on PR review suggestions - updated unit tests to handle crash which happens when user enter pp, aa as spinstates - updated documentation
1 parent 2c7eef5 commit 8e1542e

File tree

6 files changed

+387
-346
lines changed

6 files changed

+387
-346
lines changed

Framework/Algorithms/inc/MantidAlgorithms/PolarizationCorrectionFredrikze.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MANTID_ALGORITHMS_DLL PolarizationCorrectionFredrikze final : public API::
4747
std::shared_ptr<Mantid::API::MatrixWorkspace> add(const std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
4848
const double &rhs);
4949
std::shared_ptr<Mantid::API::MatrixWorkspace> multiply(const std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
50-
double &rhs);
50+
const double &rhs);
5151
};
5252

5353
} // namespace Algorithms

0 commit comments

Comments
 (0)