Skip to content

Commit

Permalink
+ tests uvh5 sidereal addition #1506
Browse files Browse the repository at this point in the history
  • Loading branch information
radonnachie committed Dec 4, 2024
1 parent e37b5be commit fa12561
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/uvdata/test_uvh5.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,27 @@ def test_uvh5_compression_options(casa_uvfits, tmp_path):
return


@pytest.mark.filterwarnings("ignore:The uvw_array does not match the expected values")
def test_uvh5_addition(casa_uvfits, tmp_path):
testfile = os.path.join(tmp_path, "uv_test_addition.uvh5")

casa_uvfits.phase(
lon=casa_uvfits.phase_center_catalog[0]["cat_lon"],
lat=casa_uvfits.phase_center_catalog[0]["cat_lat"],
phase_frame="icrs",
cat_type="sidereal",
cat_name=casa_uvfits.phase_center_catalog[0]["cat_name"],
)
casa_uvfits.write_uvh5(testfile, clobber=True)
uv = UVData()
uv.read(testfile)
uv + uv.copy()

os.remove(testfile)

return


@pytest.mark.filterwarnings("ignore:The uvw_array does not match the expected values")
def test_uvh5_read_multiple_files(casa_uvfits, tmp_path):
"""
Expand Down

0 comments on commit fa12561

Please sign in to comment.