Skip to content

Commit 9276e69

Browse files
author
KPhans
committed
black
1 parent cfcc5b3 commit 9276e69

File tree

1 file changed

+6
-26
lines changed
  • apps/dash-vehicle-geometry

1 file changed

+6
-26
lines changed

apps/dash-vehicle-geometry/app.py

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,13 @@ def cache_mesh(filepath, di, fieldname=None, point_arrays=[], cell_arrays=[]):
187187
[
188188
html.A(
189189
dbc.Button(
190-
"Enterprise Demo",
191-
color="primary",
192-
size="md",
193-
className="mr-1",
190+
"Enterprise Demo", color="primary", size="md", className="mr-1",
194191
),
195192
href="https://plotly.com/get-demo/",
196193
target="_blank",
197194
),
198195
html.A(
199-
dbc.Button(
200-
"Source Code",
201-
size="md",
202-
className="mr-1",
203-
color="secondary",
204-
),
196+
dbc.Button("Source Code", size="md", className="mr-1", color="secondary",),
205197
href="https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-vehicle-geometry",
206198
target="_blank",
207199
),
@@ -216,11 +208,7 @@ def cache_mesh(filepath, di, fieldname=None, point_arrays=[], cell_arrays=[]):
216208
target="_blank",
217209
),
218210
],
219-
style={
220-
"float": "right",
221-
"height": "60px",
222-
"padding-bottom": "0px",
223-
},
211+
style={"float": "right", "height": "60px", "padding-bottom": "0px",},
224212
)
225213

226214
# -----------------------------------------------------------------------------
@@ -262,10 +250,7 @@ def cache_mesh(filepath, di, fieldname=None, point_arrays=[], cell_arrays=[]):
262250
),
263251
],
264252
id="vtk-view-container",
265-
style={
266-
"height": "calc(100vh - 230px)",
267-
"width": "100%",
268-
},
253+
style={"height": "calc(100vh - 230px)", "width": "100%",},
269254
),
270255
],
271256
),
@@ -374,13 +359,8 @@ def update_scene(geometry, isosurfaces, surfcolor):
374359

375360

376361
@app.callback(
377-
[
378-
Output("tooltip", "children"),
379-
Output("pointer", "state"),
380-
],
381-
[
382-
Input("vtk-view", "clickInfo"),
383-
],
362+
[Output("tooltip", "children"), Output("pointer", "state"),],
363+
[Input("vtk-view", "clickInfo"),],
384364
)
385365
def probe_data(info):
386366
cone_state = {"resolution": 12}

0 commit comments

Comments
 (0)