forked from mantidproject/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added spin state order handling to PolarizationCorrectionFredrikze Co…
…rrection Algorithm This is a squashed version of mantidproject#37672 - Added spin state order handling to PolarizationCorrectionFredrikze algorithm - Implemented InputSpinStateOrder and OutputSpinStateOrder properties. - Updated execPA functions to dynamically handle different spin state orders. - Extracted input and output spin state mapping logic into separate functions for better code organization and reusability. - Ensured backward compatibility by setting default spin state orders. - Added validation to ensure input workspace count matches the spin state entered - Added spin state order handling to PolarizationCorrectionFredrikze algorithm - Implemented InputSpinStateOrder and OutputSpinStateOrder properties. - Updated execPA functions to dynamically handle different spin state orders. - Extracted input and output spin state mapping logic into separate functions for better code organization and reusability. - Ensured backward compatibility by setting default spin state orders. - Added validation to ensure input workspace count matches the spin state entered - Included unit tests to verify correct functionality and validation of spin state orders. - splitted the spin state order string to a string of vectors using the polarization correction helper splitSpinStateString added p and a to spin states - modified unit tests to test spin state orders - updated the documentation to describe the spin states and its usage Add Input and Output SpinStates for FredrikzeAlgorithm in PolarizationEfficiencyCor - added input and output spin states for fredrikze algorithm in polarizationefficiencycor algorithm - updated unit tests to test spin states in both algorithms - updated polarizationefficiencycor documentation - added a release note for the update 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 --amend-no-edit [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
- Loading branch information
1 parent
95a7a9f
commit adc8f9a
Showing
9 changed files
with
546 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
228 changes: 177 additions & 51 deletions
228
Framework/Algorithms/src/PolarizationCorrectionFredrikze.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.