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

Unhandled divide by zero case in sc_analysis.py #415

Open
JonMcCullough opened this issue Dec 5, 2023 · 0 comments
Open

Unhandled divide by zero case in sc_analysis.py #415

JonMcCullough opened this issue Dec 5, 2023 · 0 comments

Comments

@JonMcCullough
Copy link
Contributor

Test suite raises warning for invalid value encountered in divide e.g:

tests/test_dimension_adaptive_SC.py::test_look_ahead
tests/test_dimension_adaptive_SC.py::test_adapt_dimension
tests/test_dimension_adaptive_SC.py::test_SC2PCE
tests/test_dimension_adaptive_SC.py::test_comb_coef
tests/test_dimension_adaptive_SC.py::test_error
tests/test_dimension_adaptive_SC.py::test_results
  /home/runner/work/EasyVVUQ/EasyVVUQ/easyvvuq/analysis/sc_analysis.py:1128: RuntimeWarning: invalid value encountered in divide
    S_u[u] = D_u[u] / D

Maybe solution is to improve the case handling of situation where D=0 in the analysis script.

Possibly for @wedeling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant