refactor: modernize WaferMapTab layout and redesign ReadoutPanel statistics display
This commit is contained in:
@@ -229,8 +229,8 @@ class WaferMapItem(QQuickPaintedItem):
|
||||
return groups
|
||||
|
||||
def _scale(self, ds: int, r_mm: float) -> float:
|
||||
"""Pixels per mm. The wafer radius maps to ds//2 - 4 px."""
|
||||
return (ds / 2 - 4) / r_mm
|
||||
"""Pixels per mm. The wafer radius maps to ds//2 - 24 px."""
|
||||
return (ds / 2 - 24) / r_mm
|
||||
|
||||
def _to_px(self, x_mm: float, y_mm: float, cx: int, cy: int, scale: float) -> tuple[int, int]:
|
||||
"""Center-origin mm → pixel (top-left origin). Y is flipped."""
|
||||
|
||||
Reference in New Issue
Block a user