question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove cells filter alters input dataset

See original GitHub issue

Describe 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()
Screen Shot 2021-11-25 at 11 54 51 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
banesullivancommented, Nov 26, 2021

From my perspective, the current default value of inplace=True for this filter is a bug.

0reactions
banesullivancommented, Feb 3, 2022

This was resolved by #1860

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found