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

Error N1 != N2 assert in basic tutorial #441

Open
djgroen opened this issue Feb 11, 2025 · 1 comment
Open

Error N1 != N2 assert in basic tutorial #441

djgroen opened this issue Feb 11, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@djgroen
Copy link
Contributor

djgroen commented Feb 11, 2025

@eloisabentivegna reported this error during our 24-hour Hackathon.

@djgroen djgroen added the bug Something isn't working label Feb 11, 2025
@eloisabentivegna
Copy link
Collaborator

eloisabentivegna commented Feb 11, 2025

The error occurs at:

https://github.com/UCL-CCS/EasyVVUQ/blame/e455582c290eca1df5d7fa7a8044865ab8d69836/tutorials/basic_tutorial.ipynb#L663

The tutorial works fine up to this point, but this cell returns:

  File "/opt/miniconda3/envs/sv/lib/python3.11/site-packages/easyvvuq/analysis/pce_analysis.py", line 495, in analyse
    dY_hat = build_surrogate_der(fit, verbose=False)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/sv/lib/python3.11/site-packages/easyvvuq/analysis/pce_analysis.py", line 335, in build_surrogate_der
    assert(n1 == n2)
           ^^^^^^^^
AssertionError

The subsequent cells execute with no errors, and match the output of the notebook on the repository. I am on the dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants