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

Refactor WildesTest to reduce Code Duplication #38529

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yusufjimoh
Copy link
Contributor

Description of work

Refactor WildesTest to reduce Code Duplication

Summary of work

  • created helper functions to reduce code duplication in PolarizationCorrectionWildesTest

Fixes #38326

To test:

Test should pass

This does not require release notes because it involves code refactoring and improvements

@yusufjimoh yusufjimoh marked this pull request as ready for review January 7, 2025 10:19
@yusufjimoh yusufjimoh added this to the Release 6.12 milestone Jan 7, 2025
@yusufjimoh yusufjimoh added Reflectometry Issues and pull requests related to reflectometry SANS Issues and pull requests related to SANS Maintenance Unassigned issues to be addressed in the next maintenance period. ISIS Team: LSS Issue and pull requests managed by the LSS subteam at ISIS ornl-next A copy of a branch into the ornl-next fork labels Jan 7, 2025
@sf1919 sf1919 removed the ornl-next A copy of a branch into the ornl-next fork label Jan 7, 2025
@yusufjimoh yusufjimoh force-pushed the 38326-refactor-polarizationcorrectionwildestest-to-reduce-code-duplication branch from e3bbdf0 to 3597c20 Compare January 8, 2025 12:24
@rbauststfc rbauststfc assigned rbauststfc and unassigned rbauststfc Jan 10, 2025
@adriazalvarez adriazalvarez self-assigned this Jan 10, 2025
Copy link
Contributor

@adriazalvarez adriazalvarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test are working well and I think is a good step into a better organized test file. I appreciate the effort you have done with this refactoring as it is a complex test suite.
I have some suggestions that I think could improve this refactoring, but please feel free to discuss if you don't agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ISIS Team: LSS Issue and pull requests managed by the LSS subteam at ISIS Maintenance Unassigned issues to be addressed in the next maintenance period. Reflectometry Issues and pull requests related to reflectometry SANS Issues and pull requests related to SANS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor PolarizationCorrectionWildesTest to reduce code duplication
4 participants