@@ -1513,7 +1513,7 @@ class RgbaColor:
15131513 a : float = 1.0
15141514
15151515 def to_uint8 (self ) -> Tuple [int , int , int , int ]:
1516- """Return (R, G, B, A) in [0, 255] – ready for VTK / PyVista."""
1516+ """Return (R, G, B, A) in [0, 255] - ready for VTK / PyVista."""
15171517 return (
15181518 int (round (self .r * 255 )),
15191519 int (round (self .g * 255 )),
@@ -1610,7 +1610,7 @@ def to_vtk_lut(self, n_colors: int = 256) -> np.ndarray:
16101610 sorted_entries = sorted (self .entries , key = lambda e : e .index )
16111611
16121612 if not self .is_continuous :
1613- # One exact row per integer entry – no interpolation needed.
1613+ # One exact row per integer entry - no interpolation needed.
16141614 return np .array (
16151615 [e .color .to_uint8 () for e in sorted_entries ], dtype = np .uint8
16161616 )
@@ -1689,7 +1689,7 @@ class ScalarRenderingInfo:
16891689
16901690
16911691# ─────────────────────────────────────────────────────────────────────────────
1692- # Color-map readers (Group 1 – both return ColorMapInfo)
1692+ # Color-map readers (Group 1 - both return ColorMapInfo)
16931693# ─────────────────────────────────────────────────────────────────────────────
16941694
16951695
@@ -1734,7 +1734,7 @@ def read_discrete_color_map(color_map_obj: Any) -> ColorMapInfo:
17341734
17351735 **Output**: :class:`ColorMapInfo` with ``is_continuous=False`` and one
17361736 entry per integer code. ``to_vtk_lut()`` returns exactly one RGBA row per
1737- entry – suitable for VTK's categorical lookup table
1737+ entry - suitable for VTK's categorical lookup table
17381738 (``vtkLookupTable.SetAnnotation`` workflow).
17391739 """
17401740 entries = sorted (
@@ -1897,6 +1897,6 @@ def read_graphical_rendering_info(
18971897 result .contour_show_major_every = getattr (info , "show_major_line_every" , None )
18981898
18991899 # AnnotationInformation is intentionally not mapped to ScalarRenderingInfo
1900- # because it drives label text, not colour/size – handle separately if needed.
1900+ # because it drives label text, not colour/size - handle separately if needed.
19011901
19021902 return result if found else None
0 commit comments