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 CI random failures #275

Merged

Conversation

michaelcdevin
Copy link
Collaborator

@michaelcdevin michaelcdevin commented Oct 11, 2023

Description

Resolves #245 (and makes the call to subset_close around an order of magnitude faster).

Type of PR

  • Bug fix
  • New feature
  • Documentation
  • Other: (specify)

Checklist for PR

rtol=rtol, atol=atol, equal_nan=equal_nan)
if np.sum(a_in_b) == 1:
ind.append(np.flatnonzero(a_in_b)[0])
if np.sum(a_in_b) > 1:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

subset_close is only ever used to confirm the wave elevation directions are all included in the list of excitation coefficient directions, so I figured taking the nearest value is the best solution. I highly doubt this ever becomes an issue if using the normal WecOptTool workflow, but I think it's good to have.

@michaelcdevin michaelcdevin added bug Something isn't working CI Continuous integration (and development) labels Oct 11, 2023
Copy link
Member

@cmichelenstrofer cmichelenstrofer left a comment

Choose a reason for hiding this comment

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

looks good!

@cmichelenstrofer cmichelenstrofer merged commit f154b1f into sandialabs:main Oct 11, 2023
10 checks passed
@michaelcdevin michaelcdevin deleted the bug/random_ci_failure_fix branch October 25, 2023 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI Continuous integration (and development)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: test_atol randomly fails occasionally
2 participants