Skip to content

Commit

Permalink
add matching patch for v0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mvinyard committed Jul 6, 2022
1 parent 35b8b80 commit f9fd9a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArchR_h5ad/_compose_adata/_add_obs_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def _add_obs(metadata, str_col_keys=["CellNames"]):
metadata_dict = {}

for key, value in metadata.items():
if value.shape[0] == 1:
if value is None:
metadata_dict[key] = value
elif value.shape[0] == 1:
metadata_dict[key] = value[:][0].decode("utf-8")
else:
obs_dict[key] = value[:]
Expand Down

0 comments on commit f9fd9a3

Please sign in to comment.