Feat: Implement compute_derivative#837
Conversation
- To take advantage of all the options from `vtkGradientFilter`
987c2d9 to
17d6570
Compare
|
@banesullivan For updating the example documentation, should I edit the python file or the ipynb? |
The |
|
So far this is looking awesome! Thanks for all the hard work, @jrwrigh! Once you update that example, we're good to go! Also, great job with the testing |
|
Should be good to go now. |
banesullivan
left a comment
There was a problem hiding this comment.
Overall, LGTM and I'm happy with it. Did you grep to make sure you changed all other entries of compute_gradient -> compute_derivative?
Also, it'd be nice to update the example to show off the new features of this filter but that's not going to block this PR
Just did the only remaining references are to the deprecated method and other methods keyword arguments.
Agreed. I was thinking about doing this, but figured I could get the feature in first before getting in the rest. I'll make an issue for it real quick (I have a question or two about it). |
|
@banesullivan, I'm going to let you merge this one since you were the last one to comment on it. |
* upstream/master: (37 commits) 🔧 Fix unused variables (pyvista#847) Add better Unstructured Grid Documentation (pyvista#845) Fix typo in plotting.py (pyvista#846) Feat: Implement compute_derivative (pyvista#837) New probe filter and massively improve interpolate filter (pyvista#842) Clarify clip filter docstring (pyvista#840) Update create-structured-surface.py (pyvista#844) Update topo-map.py (pyvista#841) Add release suffix to version string (pyvista#817) Add pathlib Support (pyvista#836) Add tolerance argument to sample_over_line (pyvista#828) vector slice from pyvista/pyvista-support#134 (pyvista#808) Fix is_all_triangles (pyvista#832) Misc. documentation fixes (pyvista#829) Follow up pyvista#793: fix get_data_range (pyvista#818) Fix GPU info in scooby report (pyvista#825) Patch for auto_close warning (pyvista#798) Add texture demo with scalar data (pyvista#821) MAINT: Log init start/stop (pyvista#819) Add PolyData strip filter (pyvista#807) ...
Overview
This PR will implement the extra quantities available for computation in
vtkGradientFilter. Specifically, gradient, divergence, vorticity, and Q-criterion.Resolves #831
Details
compute_derivativemethod with options for all 4 quantities invtkGradientFiltercompute_gradientwithcompute_derivativemethodTODO:
compute_derivativecompute_gradientwith new function