Skip to content

Commit

Permalink
ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
parashardhapola committed Sep 13, 2022
1 parent 95ccb2a commit 041590d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion scarf/datastore/mapping_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
from dask import array as daskarr
from loguru import logger
from scipy.sparse import csr_matrix
from ..utils import show_dask_progress, clean_array, tqdmbar, controlled_compute, system_call
from ..utils import (
show_dask_progress,
clean_array,
tqdmbar,
controlled_compute,
system_call,
)
from ..assay import Assay, RNAassay
from ..writers import create_zarr_dataset
from .graph_datastore import GraphDataStore
Expand Down
6 changes: 5 additions & 1 deletion scarf/knn_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def smoothen_dists(store, z_idx, z_dist, lc: float, bw: float, chunk_size: int):

n_cells, n_neighbors = z_idx.shape
zge = create_zarr_dataset(
store, f"edges", (chunk_size * n_neighbors,), ("u8", "u8"), (n_cells * n_neighbors, 2)
store,
f"edges",
(chunk_size * n_neighbors,),
("u8", "u8"),
(n_cells * n_neighbors, 2),
)
zgw = create_zarr_dataset(
store, f"weights", (chunk_size * n_neighbors,), "f8", (n_cells * n_neighbors,)
Expand Down

0 comments on commit 041590d

Please sign in to comment.