Skip to content

Commit

Permalink
If is a string, put it into a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Oisin-M committed Apr 9, 2024
1 parent cb5e09a commit ee536cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scvelo/core/_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def get_df(
if keys is None:
df = data.to_df()
else:
key = keys if isinstance(keys, str) else keys[0]
keys = [keys] if isinstance(keys, str) else keys
key = keys[0]

if key in data.var_names:
df = obs_df(data, keys, layer=layer)
Expand Down

0 comments on commit ee536cd

Please sign in to comment.