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

Fix Create1DWorkspaceConstant #473

Merged
merged 2 commits into from Mar 27, 2015

Conversation

MichaelWedel
Copy link
Contributor

This fixes #11174.

Testing information
Code review should be enough, it was just a typo in the code. I had to add a tolerance of 3e-16 to CheckWorkspaces in AlgorithmsTest.PolarizationCorrectionTest.test_run_PA_unity to make it pass. I'm not entirely sure what causes it, my best guess is that during the various operations for creating the output workspace some floating point error accumulates.

Before these changes this did not show up because the error in Create1DWorkspaceConst was not initialized so it was 0.

@MichaelWedel MichaelWedel added the Framework Issues and pull requests related to components in the Framework label Mar 26, 2015
@MichaelWedel MichaelWedel added this to the Release 3.4 milestone Mar 26, 2015
PolarizationCorrectionTest failed, because the error on the output workspace of the algorithm is 2.2e-16 instead of 0.0. I could not find out why, so I added a small tolerance to the unit test.
@DanNixon DanNixon self-assigned this Mar 27, 2015
DanNixon added a commit that referenced this pull request Mar 27, 2015
…ace_constant

Fix Create1DWorkspaceConstant
@DanNixon DanNixon merged commit c030001 into master Mar 27, 2015
@DanNixon DanNixon deleted the 11174_fix_create_1d_workspace_constant branch March 27, 2015 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants