Skip to content

Commit

Permalink
try to trim down the length of baseline to antnums names
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolopanis committed Aug 20, 2024
1 parent c5ab198 commit b5a68c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macosx_windows_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions tests/utils/test_bls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit b5a68c5

Please sign in to comment.