Commit eb930fb Arina Danilina
committed
1 parent 6e4235c commit eb930fb Copy full SHA for eb930fb
File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ def pull(
402
402
403
403
fig = _plot_scatter (
404
404
adata = adata ,
405
- generic_key = data ["key" ] if "key" in data else None ,
405
+ generic_key = data ["key" ],
406
406
key_stored = key ,
407
407
source = data ["source" ],
408
408
target = data ["target" ],
Original file line number Diff line number Diff line change @@ -429,14 +429,10 @@ def _plot_scatter(
429
429
titles = [f"{ categories if categories is not None else 'Cells' } at time { source if push else target } " ]
430
430
titles .extend ([f"{ name } at time { time_points [i ]} " for i in range (1 , len (time_points ))])
431
431
else :
432
- titles = (
433
- [f"{ categories if categories is not None else 'Cells' } at time { source if push else target } and { name } " ]
434
- if generic_key is None
435
- else [
432
+ titles = ([
436
433
f"{ 'Push' if push else 'Pull' } { categories if categories is not None else 'cells' } "
437
434
+ f"from { source if push else target } to { target if push else source } "
438
- ]
439
- )
435
+ ])
440
436
for i , ax in enumerate (axs ):
441
437
# we need to create adata_view because otherwise the view of the adata is copied in the next step i+1
442
438
with RandomKeys (adata , n = 2 , where = "obs" ) as keys :
You can’t perform that action at this time.
0 commit comments