diff --git a/anndata/_core/merge.py b/anndata/_core/merge.py index 1a4663e8c..15a64876f 100644 --- a/anndata/_core/merge.py +++ b/anndata/_core/merge.py @@ -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: diff --git a/anndata/_io/read.py b/anndata/_io/read.py index 07d325d12..43383ab8a 100644 --- a/anndata/_io/read.py +++ b/anndata/_io/read.py @@ -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 @@ -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 diff --git a/anndata/experimental/multi_files/_anncollection.py b/anndata/experimental/multi_files/_anncollection.py index c483f7426..e8e574b43 100644 --- a/anndata/experimental/multi_files/_anncollection.py +++ b/anndata/experimental/multi_files/_anncollection.py @@ -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 @@ -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 @@ -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 diff --git a/anndata/experimental/pytorch/_annloader.py b/anndata/experimental/pytorch/_annloader.py index 409d3f3be..5ffeb7956 100644 --- a/anndata/experimental/pytorch/_annloader.py +++ b/anndata/experimental/pytorch/_annloader.py @@ -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