Conversation
|
@banesullivan, I'd like you to take a look at this since you originally implemented the |
|
I see |
Codecov Report
@@ Coverage Diff @@
## master #730 +/- ##
==========================================
+ Coverage 84.44% 85.36% +0.91%
==========================================
Files 34 34
Lines 9459 9468 +9
==========================================
+ Hits 7988 8082 +94
+ Misses 1471 1386 -85 |
|
Also, please note that unit testing is down by 50% on Mac OS. @banesullivan, please take a look at this. I'd really like to get tests cleaned up. |
|
|
|
i.e.I think taking it out might cause |
banesullivan
left a comment
There was a problem hiding this comment.
I agree with the changes and noted my thoughts in #732 (comment)
We should look into this later, but for the time being I'll leave it in since it's not going to affect our unit testing. |
|
From the surface, it looks like we are causing builds to fail downstream in pinging @jcapriot, @akaszynski. I will look into this more tonight to make sure this is the issue and try to patch a fix See https://travis-ci.org/github/simpeg/discretize/jobs/694897879#L3023 |
|
They'll have to add # necessary when building the sphinx gallery
pyvista.BUILDING_GALLERY = TrueWithin |
|
Thanks for the quick response @akaszynski I'll add that in |
|
A lot of projects are using PyVista with Sphinx gallery... requiring them all to update with that variable isn’t ideal. I’ll play with this tonight if we can preserve the original behavior |
|
We can preserve the original behavior with: BUILDING_GALLERY = 'sphinx' in sys.modulesThat way whenever sphinx has been imported (which always happens when building galleries), screenshots are always saved. I'll make the hotfix right away. |
Plot Optimization Patch
While testing out VTK9, I discovered that the unit tests were much slower. It turns out part of the issue is that we're saving a screenshot when the
showmethod is triggered in thePlotterclass:In VTK < 9.0, this adds a small overhead, but in VTK 9, the overhead is quite noticeable. In an effort to streamline
pyvistaregardless of the VTK version, this PR adds a the global variableBUILDING_GALLERYthat is enabled while building the documentation. Here's the timings forvtk8.1.2.No screenshots
Screenshots