Skip to content

Commit

Permalink
Revert to deepcopy
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Jan 15, 2024
1 parent 316e832 commit 32cb8fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ehrapy/preprocessing/_quality_control.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import copy
from pathlib import Path
from typing import TYPE_CHECKING, Literal

Expand Down Expand Up @@ -148,7 +149,7 @@ def _var_qc_metrics(adata: AnnData, layer: str = None) -> pd.DataFrame:
categorical_indices = np.ndarray([0], dtype=int)
if "original_values_categoricals" in adata.uns:
for original_values_categorical in list(adata.uns["original_values_categoricals"]):
mtx = mtx.astype(object).copy()
mtx = copy.deepcopy(mtx.astype(object))
index = np.where(var_metrics.index.str.startswith("ehrapycat_" + original_values_categorical))[0]
mtx[:, index] = np.tile(
np.where(
Expand Down

0 comments on commit 32cb8fd

Please sign in to comment.