diff --git a/src/singlecellexperiment/SingleCellExperiment.py b/src/singlecellexperiment/SingleCellExperiment.py index eb391e7..af2d806 100644 --- a/src/singlecellexperiment/SingleCellExperiment.py +++ b/src/singlecellexperiment/SingleCellExperiment.py @@ -552,7 +552,7 @@ def set_reduced_dimension(self, name: str, embedding: Any, in_place: bool = Fals if in_place is False: _tmp_red_dims = _tmp_red_dims.copy() _tmp_red_dims[name] = embedding - + _validate_reduced_dims(_tmp_red_dims, self._shape) output._reduced_dims = _tmp_red_dims return output @@ -768,7 +768,7 @@ def set_alternative_experiment( if in_place is False: _tmp_alt_expt = _tmp_alt_expt.copy() _tmp_alt_expt[name] = alternative_experiment - + _validate_alternative_experiments(_tmp_alt_expt, self._shape) output._alternative_experiments = _tmp_alt_expt return output