Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polarization tests - ornl-next #38623

Conversation

peterfpeterson
Copy link
Member

Oluwaseun Jimoh and others added 2 commits January 17, 2025 12:05
This is a squashed version of mantidproject#38529

created helper functions to reduce code duplications in PolarizationCorrectionWildestest

refactor methods with spinstates, added more helper methods to reduce code duplication

removed helper methods from namespace to class as private methods in PolarizationCorrectionWildesTest

- refactor and improve tests based on suggestions from code review

Pulling latest state from main
This is a squashed version of mantidproject#38458

Update Unit Tests in PolarizationEffiency Cor
- wrote unit tests to check that wildes method perform well when spinstates is added
- wrote unit tests to check that fredrik method throws exception when tested with wildes-only properties spinstates and flippers
- wrote unit tests to check that fredrikze method can take AddSpinStateToLog property
- refactored unit tests for maintainability

updated hardcoded strings to use private variables

refactored unit tests to reduce redudancies

Simplify Tests based on code review suggestions
- created efficiency output workspace method to cater for duplication in createEfficiencyWorkspace
- moved functions from setAlgorithmProperties to createAlgorithm method

remove duplication in test_point methods

refactor createEfficiencyOutputWorkspace method
@peterfpeterson peterfpeterson added the ornl-next A copy of a branch into the ornl-next fork label Jan 17, 2025
@peterfpeterson peterfpeterson merged commit a258cfe into mantidproject:ornl-next Jan 17, 2025
9 of 10 checks passed
@peterfpeterson peterfpeterson deleted the polarization_tests_ornlnext branch January 17, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ornl-next A copy of a branch into the ornl-next fork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants