Skip to content

Commit

Permalink
test: fix for test test_from_uvdata to remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaBreitman committed Aug 8, 2024
1 parent 405cbd2 commit 40c6892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_min_max_antpos(bm):
def test_from_uvdata(bm):
uv = pyuvdata.UVData()
uv.telescope.antenna_positions = np.array([[0, 0, 0], [0, 1, 0], [1, 0, 0], [40, 0, 40]]) * units.m
uv.telescope_location = [x.value for x in EarthLocation.from_geodetic(0, 0).to_geocentric()]
uv.telescope.telescope_location = [x.value for x in EarthLocation.from_geodetic(0, 0).to_geocentric()]

a = Observatory.from_uvdata(uvdata=uv, beam=bm)
assert np.all(a.antpos == uv.telescope.antenna_positions)
Expand Down

0 comments on commit 40c6892

Please sign in to comment.