Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit fb54c94

Browse files
remove image value clip
1 parent 381dfb9 commit fb54c94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spatialdata_xenium_explorer/core/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _should_load_memory(self, shape: tuple[int, int, int], dtype: np.dtype):
7070
return size <= self.ram_threshold_gb * 1024**3
7171

7272
def _scale(self, array: np.ndarray):
73-
return utils.scale_dtype(array, self.dtype).clip(0, np.iinfo(np.int8).max)
73+
return utils.scale_dtype(array, self.dtype)
7474

7575
def _write_image_level(self, tif: tf.TiffWriter, scale_index: int, **kwargs):
7676
xarr: xr.DataArray = next(iter(self.image[self.scale_names[scale_index]].values()))

0 commit comments

Comments
 (0)