diff --git a/hera_cal/lst_stack/tests/test_binning.py b/hera_cal/lst_stack/tests/test_binning.py index 803919c60..0347e6f4d 100644 --- a/hera_cal/lst_stack/tests/test_binning.py +++ b/hera_cal/lst_stack/tests/test_binning.py @@ -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: @@ -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,