From b5a68c51a690a5f3c8e42d6a383b57c16ff97525 Mon Sep 17 00:00:00 2001 From: Matthew Kolopanis Date: Tue, 20 Aug 2024 09:56:23 -0700 Subject: [PATCH] try to trim down the length of baseline to antnums names --- .github/workflows/macosx_windows_ci.yaml | 2 +- tests/utils/test_bls.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/macosx_windows_ci.yaml b/.github/workflows/macosx_windows_ci.yaml index 41ed4d01e..bd6c4e495 100644 --- a/.github/workflows/macosx_windows_ci.yaml +++ b/.github/workflows/macosx_windows_ci.yaml @@ -131,7 +131,7 @@ jobs: - name: Run benchmark run: | - pytest --benchmark-only --benchmark-json output.json + pytest --benchmark-only --benchmark-name=short --benchmark-json output.json # Download previous benchmark result from cache (if exists) - name: Download previous benchmark data diff --git a/tests/utils/test_bls.py b/tests/utils/test_bls.py index a7d8d339f..1a9a2ade2 100644 --- a/tests/utils/test_bls.py +++ b/tests/utils/test_bls.py @@ -48,12 +48,12 @@ def test_antnums_to_baseline_miriad_convention(): @pytest.mark.skipif(not hasbench, reason="benchmark utility not installed") @pytest.mark.parametrize( - "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"nbls={x:}" + "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"len={x:}" ) @pytest.mark.parametrize( - "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"start={x:}" + "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"min={x:}" ) -def test_bls_to_ants_bench(benchmark, bl_start, nbls): +def test_bls_to_ant(benchmark, bl_start, nbls): bls = np.arange(bl_start, bl_start + nbls) if nbls > 65535: bls += 65536 @@ -75,12 +75,12 @@ def test_bls_to_ants_bench(benchmark, bl_start, nbls): @pytest.mark.skipif(not hasbench, reason="benchmark utility not installed") @pytest.mark.parametrize( - "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"nbls={x:}" + "nbls", [1, 10, 100, 1000, 10000, 100000, 1000000], ids=lambda x: f"len={x:}" ) @pytest.mark.parametrize( - "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"start={x:}" + "bl_start", [0, 2**16, 2**16 + 2**22], ids=lambda x: f"min={x:}" ) -def test_ants_to_bls_bench(benchmark, bl_start, nbls): +def test_ants_to_bls(benchmark, bl_start, nbls): bls = np.arange(bl_start, bl_start + nbls) nants_telescope = 2048 if bl_start < 2**16 + 2**22 else 2**16 + 2**22 if nbls > 65535: