From e13b9eaf6856560a739f6e961c943e4a8495d1d7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:47:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/summarizedexperiment/RangedSummarizedExperiment.py | 1 - tests/test_RSE_methods.py | 4 ++-- tests/test_SE_methods.py | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/summarizedexperiment/RangedSummarizedExperiment.py b/src/summarizedexperiment/RangedSummarizedExperiment.py index ad42553..0588ec9 100644 --- a/src/summarizedexperiment/RangedSummarizedExperiment.py +++ b/src/summarizedexperiment/RangedSummarizedExperiment.py @@ -941,7 +941,6 @@ def combine_columns(self, *other) -> "RangedSummarizedExperiment": return combine_columns(self, *other) - ############################ ######>> combine ops <<##### ############################ diff --git a/tests/test_RSE_methods.py b/tests/test_RSE_methods.py index 5bc9e2a..ae74c89 100644 --- a/tests/test_RSE_methods.py +++ b/tests/test_RSE_methods.py @@ -212,10 +212,10 @@ def test_SE_assay_getters_and_setters(): new_tse = tse.set_assay("new_counts", assay=np.random.rand(nrows, ncols), in_place=False) assert new_tse.get_assay_names() != tse.get_assay_names() with pytest.raises(Exception): - tse.get_assay("new_counts") + tse.get_assay("new_counts") assert new_tse.get_assay("new_counts") is not None tse.set_assay("new_counts", assay=np.random.rand(nrows, ncols), in_place=True) assert new_tse.get_assay_names() == tse.get_assay_names() - assert tse.get_assay("new_counts") is not None + assert tse.get_assay("new_counts") is not None assert new_tse.get_assay("new_counts") is not None diff --git a/tests/test_SE_methods.py b/tests/test_SE_methods.py index 49357cf..15cca8a 100644 --- a/tests/test_SE_methods.py +++ b/tests/test_SE_methods.py @@ -3,7 +3,7 @@ from biocframe import BiocFrame import numpy as np from summarizedexperiment.SummarizedExperiment import SummarizedExperiment -import pytest +import pytest __author__ = "jkanche" __copyright__ = "jkanche" @@ -118,10 +118,10 @@ def test_SE_assay_getters_and_setters(): new_tse = tse.set_assay("new_counts", assay=np.random.rand(nrows, ncols), in_place=False) assert new_tse.get_assay_names() != tse.get_assay_names() with pytest.raises(Exception): - tse.get_assay("new_counts") + tse.get_assay("new_counts") assert new_tse.get_assay("new_counts") is not None tse.set_assay("new_counts", assay=np.random.rand(nrows, ncols), in_place=True) assert new_tse.get_assay_names() == tse.get_assay_names() - assert tse.get_assay("new_counts") is not None + assert tse.get_assay("new_counts") is not None assert new_tse.get_assay("new_counts") is not None