Skip to content

Commit

Permalink
update kwargs passing
Browse files Browse the repository at this point in the history
Arina Danilina committed Jun 18, 2024
1 parent c2e091c commit 8bd0ada
Showing 2 changed files with 38 additions and 39 deletions.
16 changes: 5 additions & 11 deletions examples/problems/900_annotation_mapping.ipynb
Original file line number Diff line number Diff line change
@@ -193,13 +193,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[34mINFO \u001b[0m Computing pca with `\u001b[33mn_comps\u001b[0m=\u001b[1;36m30\u001b[0m` for `xy` using `adata.X` \n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[34mINFO \u001b[0m Computing pca with `\u001b[33mn_comps\u001b[0m=\u001b[1;36m30\u001b[0m` for `xy` using `adata.X` \n",
"\u001b[34mINFO \u001b[0m Normalizing spatial coordinates of `x`. \n",
"\u001b[34mINFO \u001b[0m Solving `\u001b[1;36m1\u001b[0m` problems \n",
"\u001b[34mINFO \u001b[0m Solving problem OTProblem\u001b[1m[\u001b[0m\u001b[33mstage\u001b[0m=\u001b[32m'prepared'\u001b[0m, \u001b[33mshape\u001b[0m=\u001b[1m(\u001b[0m\u001b[1;36m3039\u001b[0m, \u001b[1;36m1297\u001b[0m\u001b[1m)\u001b[0m\u001b[1m]\u001b[0m. \n"
@@ -208,7 +202,7 @@
],
"source": [
"mp = mp.prepare(\n",
" sc_attr={\"attr\": \"obsm\", \"key\": \"X_pca\"}, kwargs={\"callback_kwargs\": \"local_pca\"}\n",
" sc_attr={\"attr\": \"obsm\", \"key\": \"X_pca\"}, **{\"xy_callback\": \"local-pca\"}\n",
").solve()"
]
},
@@ -307,7 +301,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"metadata": {},
"outputs": [
{
@@ -345,7 +339,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"metadata": {},
"outputs": [
{
@@ -372,7 +366,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"metadata": {},
"outputs": [
{
61 changes: 33 additions & 28 deletions tutorials/400_spatial_mapping.ipynb

Large diffs are not rendered by default.

0 comments on commit 8bd0ada

Please sign in to comment.