Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch VTK colormap lookuptable serializer #6651

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion panel/pane/vtk/synchronizable_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def initializeSerializers():
'vtkOpenGLGlyph3DMapper', glyph3DMapperSerializer)

# LookupTables/TransferFunctions
registerInstanceSerializer('vtkLookupTable', lookupTableSerializer)
registerInstanceSerializer('vtkLookupTable', lookupTableSerializer2)
registerInstanceSerializer(
'vtkPVDiscretizableColorTransferFunction', colorTransferFunctionSerializer)
registerInstanceSerializer(
Expand Down
4 changes: 2 additions & 2 deletions panel/tests/pane/test_vtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ def test_vtk_pane_from_renwin(document, comm):

# Check array release when actor are removed from scene
ctx = pane._contexts[model.id]
assert len(ctx.dataArrayCache.keys()) == 5
assert len(ctx.dataArrayCache.keys()) == 4
pane.remove_all_actors()
# Default : 20s before removing arrays
assert len(ctx.dataArrayCache.keys()) == 5
assert len(ctx.dataArrayCache.keys()) == 4
# Force 0s for removing arrays
ctx.checkForArraysToRelease(0)

Expand Down
Loading