Skip to content

Commit

Permalink
More linting complaints not caught previously.
Browse files Browse the repository at this point in the history
  • Loading branch information
Onoddil committed Jan 12, 2024
1 parent d31e972 commit 3148425
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/macauff/test_counterpart_pairing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions tests/macauff/test_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions tests/macauff/test_perturbation_auf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3148425

Please sign in to comment.