Skip to content

Commit

Permalink
fix raw
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Sep 5, 2023
1 parent e061347 commit 2cb6f50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anndata/_core/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def __init__(
self._X = X.get()
else:
self._X = X
n_var = None if self._X is None else self._X.shape[1]
self._var = _gen_dataframe(
var, ["var_names"], source="X", attr="var", length=self.X.shape[1]
var, ["var_names"], source="X", attr="var", length=n_var
)
self._varm = AxisArrays(self, 1, varm)
elif X is None: # construct from adata
Expand Down

0 comments on commit 2cb6f50

Please sign in to comment.