added ruff code reivew

This commit is contained in:
ykcheungab
2026-09-27 19:21:55 +08:00
parent 07da372204
commit e2ac36269c
110 changed files with 890 additions and 426 deletions
+2 -2
View File
@@ -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",
+8 -8
View File
@@ -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__(
+1 -1
View File
@@ -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: