Skip to content

Commit

Permalink
(fix): dims->sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Jul 5, 2024
1 parent 47d87bb commit b58897e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anndata/experimental/backed/_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def index(self) -> pd.Index:
def shape(
self,
): # aligned mapping classes look for this for DataFrames so this ensures usability with e.g., obsm
return [self.dims[get_index_dim(self)], len(self)]
return [self.sizes[get_index_dim(self)], len(self)]

@property
def iloc(self):
Expand Down

0 comments on commit b58897e

Please sign in to comment.