bento.tl.span¶
- bento.tl.span(sdata, shape_key, recompute=False) None¶
Compute maximum diameter of each shape.
The span is the length of the longest line segment that fits within the shape.
- Parameters:
sdata (SpatialData) – Input SpatialData object
shape_key (str) – Key in sdata.shapes containing shape geometries
recompute (bool, default False) – Whether to force recomputation if feature exists
- Returns:
Updates sdata.shapes[shape_key] with: - ‘{shape_key}_span’: Maximum diameter of each shape
- Return type:
None