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

Update plots before scraping #5321

Merged
merged 40 commits into from
Dec 13, 2023
Merged

Update plots before scraping #5321

merged 40 commits into from
Dec 13, 2023

Conversation

alexrockhill
Copy link
Contributor

Reimplements #5310.

@banesullivan I think these changes are much more modest and within the scope of the pyvista as opposed to the pyvistaqt library. I'm glad we tested it with qtpy compatibility so that we know this actually works in the original PR but we don't need to keep that all in the PR just to test one line so I think this should be okay now.

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Merging #5321 (332a590) into main (a150a95) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5321      +/-   ##
==========================================
+ Coverage   96.20%   96.27%   +0.06%     
==========================================
  Files         134      134              
  Lines       22718    22706      -12     
==========================================
+ Hits        21856    21860       +4     
+ Misses        862      846      -16     

@banesullivan
Copy link
Member

Thanks for taking the time to re-implement and scope down! Sorry for the messy process reverting your original PR. I'll review this ASAP (will be one evening this week) and make sure I:

  1. Fully understand the problem you're fixing
  2. Am onboard with these changes

@banesullivan banesullivan self-requested a review December 11, 2023 18:47
@banesullivan
Copy link
Member

Generally from a quick glance though this looks good, but I want to dive into the problem you're facing

@alexrockhill
Copy link
Contributor Author

Thanks for taking the time to re-implement and scope down! Sorry for the messy process reverting your original PR. I'll review this ASAP (will be one evening this week) and make sure I:

1. Fully understand the problem you're fixing

2. Am onboard with these changes

See the very zoomed in plots at the end here for the actual bug: https://mne.tools/mne-gui-addons/auto_examples/ieeg_locate.html#sphx-glr-auto-examples-ieeg-locate-py. The camera view is set using set_camera but that doesn't take effect until after the screenshot is grabbed for the gallery.

@tkoyama010 tkoyama010 added the bug Uh-oh! Something isn't working as expected. label Dec 11, 2023
@banesullivan
Copy link
Member

github-actions preview

@banesullivan
Copy link
Member

@ChristosT, since you're the most versed on the scraper at this time (being one of the only other people to modify it), would you please take a quick look at these changes?

Copy link
Member

@banesullivan banesullivan left a comment

Choose a reason for hiding this comment

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

Just some nitpicky comments, otherwise this looks good! Though, I'd like @ChristosT's feedback if available before merging since they are also modifying the scraper significantly in #4938

pyvista/plotting/utilities/sphinx_gallery.py Show resolved Hide resolved
pyvista/plotting/utilities/sphinx_gallery.py Show resolved Hide resolved
Copy link
Contributor

🚀 Deployed on https://6577effbe5dec61453f495af--tubular-marzipan-5e01ed.netlify.app

@ChristosT
Copy link
Contributor

It looks good from my point of view.
It actually makes sense to want to drain the interaction queues before taking a screenshot!

I merged this branch with my changes and built the documentation locally, as far as I checked everything looks good. We just need to be careful when merging because there is a (trivial) merge conflict in sphinx._gallery.py but since I already handled it, we can go ahead and merge this first if every other comment is resolved.

@tkoyama010
Copy link
Member

tkoyama010 commented Dec 13, 2023

github-actions preview (Edit: I noticed it is already deployed sorry for noise.)

@banesullivan banesullivan enabled auto-merge (squash) December 13, 2023 01:15
@tkoyama010
Copy link
Member

@alexrockhill Thank you for your flexibility in responding to our comments. It is a great contribution.

Copy link
Contributor

@alexrockhill
Copy link
Contributor Author

Thanks for the reviews everyone

@banesullivan banesullivan merged commit d9a7de6 into pyvista:main Dec 13, 2023
25 checks passed
@alexrockhill alexrockhill deleted the update2 branch December 13, 2023 03:12
@tkoyama010 tkoyama010 mentioned this pull request Dec 13, 2023
15 tasks
@banesullivan banesullivan mentioned this pull request Dec 14, 2023
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh-oh! Something isn't working as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants