Skip to content

Commit

Permalink
Refactor Fredrikze Algorithm SpinStates Implementation
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
yusufjimoh committed Sep 20, 2024
1 parent 2c7eef5 commit 69de188
Show file tree
Hide file tree
Showing 5 changed files with 362 additions and 321 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MANTID_ALGORITHMS_DLL PolarizationCorrectionFredrikze final : public API::
std::shared_ptr<Mantid::API::MatrixWorkspace> add(const std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
const double &rhs);
std::shared_ptr<Mantid::API::MatrixWorkspace> multiply(const std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
double &rhs);
const double &rhs);
};

} // namespace Algorithms
Expand Down
Loading

0 comments on commit 69de188

Please sign in to comment.