Skip to content

Commit 510d212

Browse files
authored
Switch VTK colormap lookuptable serializer (#6651)
* Switch VTK colormap lookuptable serializer * Update VTK test
1 parent e9cc695 commit 510d212

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

panel/pane/vtk/synchronizable_serializer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def initializeSerializers():
327327
'vtkOpenGLGlyph3DMapper', glyph3DMapperSerializer)
328328

329329
# LookupTables/TransferFunctions
330-
registerInstanceSerializer('vtkLookupTable', lookupTableSerializer)
330+
registerInstanceSerializer('vtkLookupTable', lookupTableSerializer2)
331331
registerInstanceSerializer(
332332
'vtkPVDiscretizableColorTransferFunction', colorTransferFunctionSerializer)
333333
registerInstanceSerializer(

panel/tests/pane/test_vtk.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ def test_vtk_pane_from_renwin(document, comm):
176176

177177
# Check array release when actor are removed from scene
178178
ctx = pane._contexts[model.id]
179-
assert len(ctx.dataArrayCache.keys()) == 5
179+
assert len(ctx.dataArrayCache.keys()) == 4
180180
pane.remove_all_actors()
181181
# Default : 20s before removing arrays
182-
assert len(ctx.dataArrayCache.keys()) == 5
182+
assert len(ctx.dataArrayCache.keys()) == 4
183183
# Force 0s for removing arrays
184184
ctx.checkForArraysToRelease(0)
185185

0 commit comments

Comments
 (0)