From 31484251a7a839b938e661eab75d8b4ed0832dee Mon Sep 17 00:00:00 2001 From: "Tom J. Wilson" Date: Fri, 12 Jan 2024 15:04:05 +0000 Subject: [PATCH] More linting complaints not caught previously. --- tests/macauff/test_counterpart_pairing.py | 1 + tests/macauff/test_matching.py | 1 + tests/macauff/test_perturbation_auf.py | 2 ++ 3 files changed, 4 insertions(+) diff --git a/tests/macauff/test_counterpart_pairing.py b/tests/macauff/test_counterpart_pairing.py index fe34504..08bb771 100644 --- a/tests/macauff/test_counterpart_pairing.py +++ b/tests/macauff/test_counterpart_pairing.py @@ -559,6 +559,7 @@ def _setup_cross_match_parameters(self): f'data/chunk0/{file_name}_.txt')) def test_pair_sources(self): # pylint: disable=too-many-statements + # pylint: disable=no-member os.system(f'rm -r {self.joint_folder_path}/*') # Same run as test_source_pairing, but called from CrossMatch rather than # directly this time. diff --git a/tests/macauff/test_matching.py b/tests/macauff/test_matching.py index e7b9971..818310a 100644 --- a/tests/macauff/test_matching.py +++ b/tests/macauff/test_matching.py @@ -273,6 +273,7 @@ def test_crossmatch_auf_cf_input(self): [131, 1], [132, 1], [133, 1], [134, 1]])) def test_crossmatch_load_tri_hists(self): # pylint: disable=too-many-statements + # pylint: disable=no-member with open(os.path.join(os.path.dirname(__file__), 'data/crossmatch_params.txt'), encoding='utf-8') as file: f = file.readlines() diff --git a/tests/macauff/test_perturbation_auf.py b/tests/macauff/test_perturbation_auf.py index 419fab5..8163e6b 100644 --- a/tests/macauff/test_perturbation_auf.py +++ b/tests/macauff/test_perturbation_auf.py @@ -45,6 +45,7 @@ def setup_class(self): self.cm.perturb_auf_func = make_perturb_aufs def test_no_perturb_outputs(self): + # pylint: disable=no-member # Randomly generate two catalogues (x3 files) between coordinates # 0, 0 and 50, 50. rng = np.random.default_rng() @@ -656,6 +657,7 @@ def test_psf_algorithm(self): # pylint: disable=too-many-locals @pytest.mark.remote_data @pytest.mark.parametrize("precompute_tri_hists", [True, False]) def test_compute_local_density(self, precompute_tri_hists): + # pylint: disable=no-member # Number of sources per PSF circle, on average, solved backwards to ensure # that local density ends up exactly in the middle of a count_array bin. # This should be approximately 0.076 sources per PSF circle.