Skip to content

Commit 4984a71

Browse files
committed
refactor: remove redundant code
1 parent 8901383 commit 4984a71

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/cell_eval/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,4 @@ def _cast_float16_to_float32(adata: ad.AnnData, which: str | None = None):
125125
logger.info(
126126
f"Casting {which} anndata from float16 to float32 (NUMBA does not support float16)."
127127
)
128-
if sp.issparse(x):
129-
adata.X = x.astype(np.float32)
130-
else:
131-
adata.X = x.astype(np.float32)
128+
adata.X = x.astype(np.float32)

0 commit comments

Comments
 (0)