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

[BugFix] Raise an error if reg test results contain NaN or infinity #718

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

rafmudaf
Copy link
Collaborator

Feature or improvement description
The regression test framework currently does not catch NaN's or Infinity in the test results since these are represented as floats in Numpy. This pull request adds an explicit check for any NaN or Infinity values in the results and throws an error is they are encountered.

Related issue, if one exists
#711

Impacted areas of the software

Test results, if applicable
The debug test is expected to fail, but it fails differently than in the previous commit. Whereas the previous commit failed as if the results were different, this one fails and notes that a NaN was encountered.

@rafmudaf rafmudaf merged commit 9b13ef0 into OpenFAST:dev Apr 13, 2021
@rafmudaf rafmudaf deleted the testing/reg-test-nans branch April 14, 2021 17:51
@rafmudaf rafmudaf mentioned this pull request May 12, 2021
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant