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

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

Open
PotofStew23 opened this issue Sep 11, 2023 · 1 comment

Comments

@PotofStew23
Copy link

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

@frouhi
Copy link

frouhi commented Jul 19, 2024

I'm wondering about this one too! did you manage to find a workaround?

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

No branches or pull requests

2 participants