Skip to content

bug: dash_vtk.PointCloudRepresentation does not accept 'id' as a valid keyword argument #73

@PotofStew23

Description

@PotofStew23

Description

When supplying an id as a keyword argument to a PointCloudRepresentation, the following TypeError is raised:
TypeError: The dash_vtk.PointCloudRepresentation component (version 0.0.9) with the ID "vtkPointCloud" received an unexpected keyword argument: id
Allowed arguments: colorDataRange, colorMapPreset, property, rgb, rgba, scalars, xyz

Steps/Code to Reproduce

import dash
import dash_vtk
import dash_html_components as html

app = dash.Dash(name)

app.layout = html.Div(
style={"width": "100%", "height": "calc(100vh - 16px)"},
children=dash_vtk.View([
dash_vtk.PointCloudRepresentation(
id='vtk-pointcloud',
xyz=[1, 1, 1, 2, 2, 2, 3, 3, 3],
scalars=[1, 2, 3],
colorDataRange=[1, 3],
property={"pointSize": 5}
),
]),
)

if name == "main":
app.run_server(debug=True)

Expected Results

image

Actual Results

Traceback (most recent call last):
dash_vtk.PointCloudRepresentation(
File "C:....venv\lib\site-packages\dash\development\base_component.py", line 420, in wrapper
return func(*args, **kwargs)
File "C:....venv\lib\site-packages\dash_vtk\PointCloudRepresentation.py", line 52, in init
super(PointCloudRepresentation, self).init(**args)
File "C:....venv\lib\site-packages\dash\development\base_component.py", line 138, in init
raise TypeError(
TypeError: The dash_vtk.PointCloudRepresentation component (version 0.0.9) with the ID "vtk-pointcloud" received an unexpected keyword argument: id
Allowed arguments: colorDataRange, colorMapPreset, property, rgb, rgba, scalars, xyz

Versions

Dash 2.13.0
Dash Core Components 2.0.14
Dash HTML Components 2.12.0
Dash VTK 0.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions