Skip to content

Commit

Permalink
fixed error in parallelization not working for a dataset, andata not …
Browse files Browse the repository at this point in the history
…correctly loading into memory
  • Loading branch information
Saiyam26 committed Dec 30, 2024
1 parent e88f9a1 commit 11e77f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalr/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def write_chunkwise_data(full_data: Union[AnnData, AnnCollection],

if not isinstance(data, AnnData):
data = data.to_adata()
data = data.to_memory()
data = data.to_memory(copy=True)

for col in data.obs.columns:
data.obs[col] = data.obs[col].astype('category')
Expand Down

0 comments on commit 11e77f0

Please sign in to comment.