Open
Description
Description
It appears that the current copy of GeometryRepresentation.py is missing some of the traits specified in GeometryRepresentation.react.js; specifically showScalarBar
and scalarBarTitle
. Manually adding these fields to self._prop_names
and self.available_properties
in GeometryRepresentation.py fixes the issue, which suggests that for whatever reason the auto-generated GeometryRepresentation.py file is out of date.
Steps/Code to Reproduce
Copy and run usage.py
with the dash package versions specified in the Versions section below.
Expected Results
VTK example with color bar and colorbar title should appear
Actual Results
Without manual fix:
Traceback (most recent call last):
File "C:\Users\wingop\dev_workspace\python\vtk_colorbar_test\usage.py", line 41, in <module>
dash_vtk.GeometryRepresentation(
File "C:\Users\wingop\.conda\envs\dash\Lib\site-packages\dash\development\base_component.py", line 420, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wingop\.conda\envs\dash\Lib\site-packages\dash_vtk\GeometryRepresentation.py", line 61, in __init__
super(GeometryRepresentation, self).__init__(children=children, **args)
File "C:\Users\wingop\.conda\envs\dash\Lib\site-packages\dash\development\base_component.py", line 138, in __init__
raise TypeError(
TypeError: The `dash_vtk.GeometryRepresentation` component (version 0.0.9) with the ID "rep" received an unexpected keyword argument: `scalarBarTitle`
Allowed arguments: actor, children, colorDataRange, colorMapPreset, cubeAxesStyle, id, mapper, property, showCubeAxes
With manual fix:
Demo renders as expected
Versions
Dash 2.14.2
Dash Core Components 2.0.15
Dash HTML Components 2.12.1
Dash VTK 0.0.9
Metadata
Metadata
Assignees
Labels
No labels