added ruff code reivew
This commit is contained in:
@@ -18,8 +18,8 @@ from .mesh import (
|
||||
lift_uv_deformation_to_3d,
|
||||
lift_uv_flow_to_3d,
|
||||
mesh_uv_to_world_scale,
|
||||
scalar_map_vertex_colors,
|
||||
sample_field_at_mesh_vertices,
|
||||
scalar_map_vertex_colors,
|
||||
)
|
||||
from .runtime import (
|
||||
FingerGeometry,
|
||||
@@ -39,8 +39,8 @@ __all__ = [
|
||||
"FingerGeometry",
|
||||
"FingerRuntime",
|
||||
"TactileProcessor",
|
||||
"UVSurfaceMesh",
|
||||
"UVMeshViewer",
|
||||
"UVSurfaceMesh",
|
||||
"build_uv_surface_mesh",
|
||||
"compute_uv_surface_frames",
|
||||
"deform_mesh_vertices",
|
||||
|
||||
@@ -12,15 +12,15 @@ class UVSurfaceMesh:
|
||||
"""Triangle mesh built from a UV flatten grid and world_xyz surface map."""
|
||||
|
||||
__slots__ = (
|
||||
"rest_vertices",
|
||||
"triangles",
|
||||
"vertex_ys",
|
||||
"vertex_xs",
|
||||
"index_map",
|
||||
"valid_mask",
|
||||
"shape",
|
||||
"world_xyz",
|
||||
"base_colors",
|
||||
"index_map",
|
||||
"rest_vertices",
|
||||
"shape",
|
||||
"triangles",
|
||||
"valid_mask",
|
||||
"vertex_xs",
|
||||
"vertex_ys",
|
||||
"world_xyz",
|
||||
)
|
||||
|
||||
def __init__(
|
||||
|
||||
@@ -246,7 +246,7 @@ class FingerRuntime:
|
||||
mirror=False,
|
||||
auto_reconnect: bool = False,
|
||||
capture_mode: str = "latest",
|
||||
) -> "FingerRuntime":
|
||||
) -> FingerRuntime:
|
||||
"""Open a live finger runtime from export bundle, config, and video source."""
|
||||
del capture_mode # deprecated; latest-frame capture only
|
||||
if camera_id is not None:
|
||||
|
||||
Reference in New Issue
Block a user