diff --git a/src/spatialdata/_core/operations/rasterize_bins.py b/src/spatialdata/_core/operations/rasterize_bins.py index f3ff32fbf..5277f5d78 100644 --- a/src/spatialdata/_core/operations/rasterize_bins.py +++ b/src/spatialdata/_core/operations/rasterize_bins.py @@ -56,7 +56,7 @@ def rasterize_bins( The key(s) (obs columns/var names) in the table that will be used to rasterize the bins. If `None`, all the var names will be used, and the returned object will be lazily constructed. Ignored if `return_region_as_labels` is `True`. - return_regions_as_labels + return_region_as_labels If `False` this function returns a `xarray.DataArray` of shape `(c, y, x)` with dimension of `c` equal to the number of key(s) specified in `value_key`, or the number of var names in `table_name` if `value_key` is `None`. If `True`, will return labels of shape `(y, x)`, @@ -280,7 +280,7 @@ def rasterize_bins_link_table_to_labels(sdata: SpatialData, table_name: str, ras Change the annotation target of the table to the rasterized labels. This function should be called after having rasterized the bins (calling `rasterize_bins()` with - `return_regions_as_labels=True`) and after having added the rasterized labels to the spatial data object. + `return_region_as_labels=True`) and after having added the rasterized labels to the spatial data object. Parameters ---------- diff --git a/src/spatialdata/_core/spatialdata.py b/src/spatialdata/_core/spatialdata.py index 89f4a4920..8be3c2682 100644 --- a/src/spatialdata/_core/spatialdata.py +++ b/src/spatialdata/_core/spatialdata.py @@ -2427,8 +2427,8 @@ def subset( ---------- element_names The names of the element_names to subset. If the element_name is the name of a table, this table would be - completely included in the subset even if filter_table is True. - filter_table + completely included in the subset even if `filter_tables` is True. + filter_tables If True (default), the table is filtered to only contain rows that are annotating regions contained within the element_names. include_orphan_tables diff --git a/src/spatialdata/models/_utils.py b/src/spatialdata/models/_utils.py index 1ffe50a49..972e2d9be 100644 --- a/src/spatialdata/models/_utils.py +++ b/src/spatialdata/models/_utils.py @@ -92,7 +92,7 @@ def validate_axes(axes: tuple[ValidAxis_t, ...]) -> None: Parameters ---------- - axis + axes The names of the axes Raises