-
Notifications
You must be signed in to change notification settings - Fork 37
Make plot helper compatible with Python 3.13 #549
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
Changes from 3 commits
9f4ee49
e6d3890
fd7a328
e451bc7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ def wrapper(): | |
| benchmark(wrapper) | ||
|
|
||
|
|
||
| @pytest.mark.base | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tlunet, do you agree with this markers? I don't think we need to run these tests in all environments. They are throwing some numpy deprecation warnings at the moment, which we will need to deal with someday.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are necessary. You just need to replace in the first assertion the == between arrays by some np.allclose (as the warning is suggesting ?) EDIT : nvm, missread ...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a polynomial deprecation warrning ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't pay much attention to the warning, tbh. For now, I just want to run these tests only in the base environment and not in every environment.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, then that's fine indeed ... sorry I didn't realized that was an addition 😅 |
||
| @pytest.mark.parametrize("node_type", node_types) | ||
| @pytest.mark.parametrize("quad_type", quad_types) | ||
| def test_canintegratepolynomials(node_type, quad_type): | ||
|
|
@@ -61,6 +62,7 @@ def test_canintegratepolynomials(node_type, quad_type): | |
| ) | ||
|
|
||
|
|
||
| @pytest.mark.base | ||
| @pytest.mark.parametrize("node_type", node_types) | ||
| @pytest.mark.parametrize("quad_type", quad_types) | ||
| def test_relateQandSmat(node_type, quad_type): | ||
|
|
@@ -82,6 +84,7 @@ def test_relateQandSmat(node_type, quad_type): | |
| ) | ||
|
|
||
|
|
||
| @pytest.mark.base | ||
| @pytest.mark.parametrize("node_type", node_types) | ||
| @pytest.mark.parametrize("quad_type", quad_types) | ||
| def test_partialquadraturewithQ(node_type, quad_type): | ||
|
|
@@ -104,6 +107,7 @@ def test_partialquadraturewithQ(node_type, quad_type): | |
| ) | ||
|
|
||
|
|
||
| @pytest.mark.base | ||
| @pytest.mark.parametrize("node_type", node_types) | ||
| @pytest.mark.parametrize("quad_type", quad_types) | ||
| def test_partialquadraturewithS(node_type, quad_type): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be added as a test dependency, directly in the pyproject.toml file, I beleive (see https://github.com/Parallel-in-Time/qmat/blob/4919f197bac230a27f8ccea4188645cb53fefd0a/pyproject.toml#L34) ... also, qmat should already be installed when installing pySDC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I disagree. We still want environments without MPI after all.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hence the idea of optional dependencies defined in the
pyproject.tomlfile. You could create agustoone or agusto-test, etc ... and simply install using :which would install the base dependencies, + the optional ones (cf here). It makes the pipeline way cleaner, and centralizes the dependencies in the
pyproject.toml, which allows a better control for local or CI tests ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can think of adding MPI dependencies there, but I don't really see the point, tbh. I prefer this way where the setup of the container and what goes into the container is all together. Outside of the testing pipeline people are not going to use the container and will not need the testing thing.
Also, turns out the test is flaky somehow and adding pytest-isolate-mpi did not at all fix it. This is pretty annoying :D
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, my guess is that you can remove this and the
pip install qmat😛 (stop the unnecessary code spamming ...)