-
Notifications
You must be signed in to change notification settings - Fork 124
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
Improve plotting quality #2301
Comments
Pinging @ansys/pyansys-core team for feedback. Especially @AlejandroFernandezLuces |
This problem, as well as all of the problems we've seen with PyVista screenshots in PyMAPDL lead me to think that there is a problem with how PyVista is getting the screenshots when the plotter is not in visual mode. I've already reviewed the scraper for PR #2046, which was potentially where problems like this could arise, and everything is looking good there at the moment. The only problematic part left is the PyVista plotter. PyMAPDL is using PyVista fine, so there shouldn't be anything wrong here regarding this. We will need assistance from PyVista people to fix these errors. As soon as we get in touch with them, I'll arise this issue with them. |
@AlejandroFernandezLuces is there a way to bypass all the fails in pytest?? |
You want to temporary mark those test to be skipped because they will fail, while it doesn't get fixed right? You can skip specific tests if you need it with this decorator: https://docs.pytest.org/en/7.1.x/how-to/skipping.html#skipping-test-functions Also, you can skip tests based in a condition too, for example: Something like this should work: skip_pyvista = pytest.mark.skip(reason="PyVista is not getting the right screenshots")
@skip_pyvista
def test_yourtest():
... |
@AlejandroFernandezLuces is it worthy to ping Pyvista mantainers? (Bane, Alex, Tetsuo) |
It might be worth it. Let me double check after the hackathon this issue and I'll let you know |
Update on this:
|
Checking the
pytest-pyvista
extension, I have realised that the plotting quality is not great (at least on the CICD).Plots for demonstration:
On the left, the ones generated in my laptop (MacOS X, Python 3.10, MAPDL v22.2).
On the right, the ones generated inside a MAPDL Ubuntun container with (Ubuntu, Python 3.10, MAPDL v22.2).
The text was updated successfully, but these errors were encountered: