Skip to content

Commit

Permalink
Resolving close adata object bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Oct 28, 2024
1 parent 9c9b4b1 commit 03e948a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/api/resources/projectr.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,10 @@ def projectr_callback(dataset_id, genecart_id, projection_id, session_id, scope,
, "num_dataset_genes": num_target_genes
}

adata.close()
# Close adata so that we do not have a stale opened object
if adata.isbacked:
adata.file.close()

if dedup_copy.exists():
dedup_copy.unlink()

Expand Down

0 comments on commit 03e948a

Please sign in to comment.