Skip to content

Self adjoint test running Forward then Backward with different rhs terms#252

Open
rmadec-cs wants to merge 2 commits intomainfrom
feature/python_self_adjoint_test
Open

Self adjoint test running Forward then Backward with different rhs terms#252
rmadec-cs wants to merge 2 commits intomainfrom
feature/python_self_adjoint_test

Conversation

@rmadec-cs
Copy link
Collaborator

acoustic and elastic

@rmadec-cs rmadec-cs self-assigned this Feb 27, 2026
@rmadec-cs rmadec-cs added python Pull requests that update python code tests Adding and modifying tests labels Mar 4, 2026
@@ -0,0 +1,1687 @@
#!/usr/bin/env python3
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

should it be moved to tests/validation folder since it looks like a validation test more than an example on how to use the library ? and run with commands like pytest tests/validation --order 2 --mesh cartesian --tolerance 1e-2. tThis will also allow to easily assert on some checks.

this will imply replacing argparse by pytest parser to get something like

def pytest_addoption(parser):
    parser.addoption("--order", type=int, default=1)
    parser.addoption("--mesh", type=str, default="cartesian")
    parser.addoption("--elastic", action="store_true", default=False)
    parser.addoption("--tolerance", type=float, default=5e-2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update python code tests Adding and modifying tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants