Remove cells filter alters input dataset
See original GitHub issueDescribe the bug, what’s wrong, and what you expect:
The remove_cells
filter seems to be removing cells inplace on the source mesh and returning a new mesh with the cells removed as well. This is very unexpected – the source mesh should be left unnafected!
To Reproduce
I uncovered this when doing https://github.com/pyvista/pyvista/discussions/1815#discussioncomment-1703846
from pyvista import examples
truth = examples.load_hexbeam()
source = truth.copy()
out = source.remove_cells([0])
p = pv.Plotter(notebook=0, shape=(1,2))
p.add_mesh(truth.extract_all_edges(), color='k', line_width=10)
p.add_mesh(source, color='tan')
p.subplot(0,1)
p.add_mesh(truth.extract_all_edges(), color='k', line_width=10)
p.add_mesh(out, color='tan')
p.link_views()
p.show()
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Excel Filter: How to add, use and remove
When you edit or delete data in filtered cells, Excel AutoFilter does not update automatically to reflect the changes. To re-apply the filter, ......
Read more >How to Delete Filtered Rows in Excel (5 Easy Ways)
Deleting Visible Filtered Rows · Select the visible rows of the dataset. · You can also preselect the data before filtering without selecting...
Read more >Delete Hidden or Visible Records after Applying Filter in Excel
Download the featured file here: https://www.bluepecantraining.com/wp-content/uploads/2021/08/ Delete - Filtered -Records.
Read more >Filter data in a range or table
Select any cell within the range. · Select Data > Filter. Filter button · Select the column header arrow Filter arrow . ·...
Read more >Excel AutoFilter Basics - Filters
Delete Filtered Rows · Make a backup copy of your file first -- just to be safe. · In the filtered table, select...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From my perspective, the current default value of
inplace=True
for this filter is a bug.This was resolved by #1860