-
Notifications
You must be signed in to change notification settings - Fork 122
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
fix: Force render in example #2046
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2046 +/- ##
==========================================
+ Coverage 80.82% 87.14% +6.32%
==========================================
Files 44 45 +1
Lines 7489 8208 +719
==========================================
+ Hits 6053 7153 +1100
+ Misses 1436 1055 -381 |
@AlejandroFernandezLuces I downloaded the zip and it doesn't show the gif. |
@germa89 aside from this GIF, aren't you having issues with building the documentation? In this PR I reverted all of the changes, until this branch was the same as In my local I'm not being able to build the docs, and I think @clatapie isn't being able to do so either. Regarding the GIF, I'm honestly at a loss on what's happening. It is working fine when running manually, and other gifs work fine in the docs as well, it's just this example. I'll keep making tests on this PR to see if I can find the source of the error. |
…/pymapdl into fix/force-render-example
for more information, see https://pre-commit.ci
…/pymapdl into fix/force-render-example
@germa89 @AlejandroFernandezLuces It renders to me... video.webm |
From my perspective we have a couple of issues that are not straightforward to fix:
It's hard to know where the meshing issue comes from. I'll give it a few more tries with PyVista options, but if that isn't working we'll have to fix the other issues first. I opened an issue in PyVista regarding the extensions: pyvista/pyvista#4397. |
The PNG issue is fixed in pyvista/pyvista#4403 , we can wait unit it's patch released to continue working here. Let's hope that helps. |
It was patched released this weekend - update the reqs and merge :) |
…/pymapdl into fix/force-render-example
for more information, see https://pre-commit.ci
I ran out of ideas on this one, my last comment is the best I could get out of the documentation. I'll triple check again once I get home, but I think that's the best I could do. If it's acceptable, we can manually add this particular gif to the documentation, since it is working fine with regular plotting and it is the only gif that is failing. |
Let's try to close this up with the best solution possible. Double check when you can @AlejandroFernandezLuces |
…/pymapdl into fix/force-render-example
Any update on this @AlejandroFernandezLuces ?? |
Yes, I added the GIF manually to the documentation. It is not the best solution, but at least it will show properly in the documentation. Another approach I tried, since it would be better for maintenance, is to run the example before building the docs and getting the GIF from there, but it wasn't working for some reason. Please @germa89 review and let me know if this approach is good enough. |
I was kind of conflicted with this. Hiding the issue is not good. But it is probably not worthy (at the moment) to keep investing time in such small impact issue. I think probably the issue is on Pyvista side. I check the animation and it seems there are some peak values, that is the animation camera is so far away. However I checked manually the values used to update the gif and they seems OK. So probably the error is when updating the values under a sphinx environment. Again, very small impact issue. So I'm approving this PR. Thank a lot for the time you spent on this @AlejandroFernandezLuces, I know it has been a lot. |
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.
LGTM. Thank you @AlejandroFernandezLuces !!
Explanation
Test if forcing the render of the example makes it work fine in the doc building in the CI. Currently, this fixes the issues with the visualization described in #1579 in the python visualizer.
GIF generation with
pyvista
is not working properly in my local (maybe there is another issue with that), so I'll give it a try with the CI.