Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct some typos in strings and comments #870

Merged
merged 1 commit into from
Jan 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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