Skip to content

Commit

Permalink
fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anushka255 committed Nov 6, 2024
1 parent f75075a commit 56cd3d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/notebooks/paste_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
"metadata": {},
"outputs": [],
"source": [
"slices = get_common_genes(slices)\n",
"slices, _ = get_common_genes(slices)\n",
"\n",
"b = []\n",
"for i in range(len(slices)):\n",
Expand Down
3 changes: 1 addition & 2 deletions src/paste3/paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ def center_align(
device=device,
)

if pi_inits is None:
pis = [None for _ in slices]
pis = [None for _ in slices] if pi_inits is None else pi_inits

# Initialize center_slice
center_slice = AnnData(np.dot(feature_matrix, coeff_matrix))
Expand Down

0 comments on commit 56cd3d4

Please sign in to comment.