Skip to content

Optimize extract#37

Open
danlipsa wants to merge 4 commits intoKitware:masterfrom
danlipsa:optimize_extract
Open

Optimize extract#37
danlipsa wants to merge 4 commits intoKitware:masterfrom
danlipsa:optimize_extract

Conversation

@danlipsa
Copy link
Copy Markdown
Collaborator

@danlipsa danlipsa commented Apr 7, 2026

No description provided.

danlipsa added 4 commits April 2, 2026 14:28
Caching only the ghost cells won't work as RemoveGhostCells modifies
the output. Only new arrays are modified using PedigreeIds
This reverts commit 9c93c21.
There is no need for PVGeometryFilter anymore as removing
HIDDENCELL is done in EAMExtract
@danlipsa
Copy link
Copy Markdown
Collaborator Author

danlipsa commented Apr 7, 2026

@jourdain Please review

@danlipsa
Copy link
Copy Markdown
Collaborator Author

danlipsa commented Apr 7, 2026

Note that I had to update the input for the mappers (in my script) on the second render, otherwise I was seeing a crash at the second render: https://gitlab.kitware.com/danlipsa/quickview_optimize/-/commit/b3cc77daf462693b27a25b7daf8bbd79891aba57

I see a similar crash in Quickview, and it seems we don't do that there - but maybe I don't follow the code.
To get that crash in Quickview:

  1. Load the 120 dataset (simulation + connectivity)
  2. Choose BURDEN1 and CLDLOW. Load 2 variables
  3. Lat/lon cropping. Move the left slider to some value, than move it back to 0.

def extract_avgs(vtk_data, array_names):
def extract_avgs(pv_data, array_names):
results = {}
vtk_data = servermanager.Fetch(pv_data)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oh, yes that is wrong. I still have to use the vtk_data.

@danlipsa
Copy link
Copy Markdown
Collaborator Author

danlipsa commented Apr 7, 2026

Seems there is an additional issue going on. I still get the crash if I update only the "trim". If I update both the trim and projection I don't get the crash (in my script).

geom_filter = self.source.views["atmosphere_data"]
geom_filter.Update()
data = geom_filter.GetOutput()
data = self.source.views["atmosphere_data"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

no

geom_filter = self.source.views["atmosphere_data"]
geom_filter.Update()
data = geom_filter.GetOutput()
data = self.source.views["atmosphere_data"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

no

def Update(self, data_file, conn_file): # force_reload
if self.data_reader.load(data_file, conn_file):
self.views["atmosphere_data"] = self.data_reader.vtk_geometry
self.views["atmosphere_data"] = self.data_reader.geometry
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants