Skip to content

Commit 52d1ecc

Browse files
set adata.uns['is_baseline'] (openproblems-bio#820)
1 parent 80b37e7 commit 52d1ecc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openproblems/tools/decorators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ def method(
8383

8484
def decorator(func):
8585
@functools.wraps(func)
86-
def apply_method(*args, **kwargs):
86+
def apply_method(adata: anndata.AnnData, *args, **kwargs):
8787
log.debug("Running {} method".format(func.__name__))
88-
return func(*args, **kwargs)
88+
adata.uns["is_baseline"] = is_baseline
89+
return func(adata, *args, **kwargs)
8990

9091
apply_method.metadata = dict(
9192
method_name=method_name,

0 commit comments

Comments
 (0)