Skip to content

Commit

Permalink
Add test exposing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Jun 6, 2024
1 parent 1e11d93 commit 6957e27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hera_cal/lst_stack/tests/test_binning.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ..config import LSTBinConfigurator
import shutil
from hera_cal.lst_stack.io import apply_filename_rules
from pyuvdata import UVFlag
from pyuvdata import UVFlag, UVData


class TestAdjustLSTBinEdges:
Expand Down Expand Up @@ -369,6 +369,10 @@ def test_bin_files(self, season, request):
assert uvd.Nfreqs == uvd1.Nfreqs == len(cfg.config.datameta.freq_array)
assert uvd.Npols == uvd1.Npols == len(cfg.config.datameta.pols)

# test that exposes bug fixed in 3a3ead0fd13400578b50b5fe05af39be61717206
uvd0 = UVData.from_file(cfg.matched_files[0])
assert np.allclose(uvd.get_ENU_antpos()[0], uvd0.get_ENU_antpos()[0])

def test_redavg_with_where_inpainted(self, request, tmp_path_factory):
# This is kind of a dodgy way to test that if the inpainted files don't have
# all the baselines, things will fail. We copy the original data files,
Expand Down

0 comments on commit 6957e27

Please sign in to comment.