Skip to content

Commit

Permalink
Correct some typos in strings and comments. (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
folded authored Jan 1, 2023
1 parent 312e6ff commit 3c5f63d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion anndata/_core/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def concat_Xs(adatas, reindexers, axis, fill_value):
elif any(X is None for X in Xs):
raise NotImplementedError(
"Some (but not all) of the AnnData's to be concatenated had no .X value. "
"Concatenation is currently only implmented for cases where all or none of"
"Concatenation is currently only implemented for cases where all or none of"
" the AnnData's have .X assigned."
)
else:
Expand Down
4 changes: 2 additions & 2 deletions anndata/_io/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def read_loom(
)
if obsm_mapping != {}:
raise ValueError(
"Recieved values for both `obsm_names` and `obsm_mapping`. This is "
"Received values for both `obsm_names` and `obsm_mapping`. This is "
"ambiguous, only pass `obsm_mapping`."
)
obsm_mapping = obsm_names
Expand All @@ -239,7 +239,7 @@ def read_loom(
)
if varm_mapping != {}:
raise ValueError(
"Recieved values for both `varm_names` and `varm_mapping`. This is "
"Received values for both `varm_names` and `varm_mapping`. This is "
"ambiguous, only pass `varm_mapping`."
)
varm_mapping = varm_names
Expand Down
6 changes: 3 additions & 3 deletions anndata/experimental/multi_files/_anncollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def iterate_axis(
batch = self[:, idx]
else:
batch = self[idx]
# only happens if the last batch is smaller then batch_size
# only happens if the last batch is smaller than batch_size
if len(batch) < batch_size and drop_last:
continue

Expand Down Expand Up @@ -482,7 +482,7 @@ def convert(self):
A function or a Mapping of functions which will be applied
to the values of attributes (`.X`) or to specific keys of these attributes
(`.obs`, `.obsm`, `.layers`).
The keys of the the Mapping should correspond to the attributes or keys of the
The keys of the Mapping should correspond to the attributes or keys of the
attributes (hierarchically) and the values should be functions used for conversion.
Examples
Expand Down Expand Up @@ -806,7 +806,7 @@ def convert(self):
(`.obs`, `.obsm`, `.layers`) of subset objects. The converters are not
applied to `.obs` and `.obsm` (if present) of this object, only to the attributes
of subset objects.
The keys of the the Mapping should correspond to the attributes or keys of the
The keys of the Mapping should correspond to the attributes or keys of the
attributes (hierarchically) and the values should be functions used for conversion.
Examples
Expand Down
2 changes: 1 addition & 1 deletion anndata/experimental/pytorch/_annloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __iter__(self):
for i in range(0, self.n_obs, self.batch_size):
batch = indices[i : min(i + self.batch_size, self.n_obs)]

# only happens if the last batch is smaller then batch_size
# only happens if the last batch is smaller than batch_size
if len(batch) < self.batch_size and self.drop_last:
continue

Expand Down

0 comments on commit 3c5f63d

Please sign in to comment.