Skip to content

Commit 990bdec

Browse files
committed
Add regression test for astropy#14383
1 parent b6345a7 commit 990bdec

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎astropy/coordinates/tests/test_frames.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,3 +1714,10 @@ def test_altaz_broadcast(s1, s2):
17141714
time = Time(np.full(np.prod(s1), 58000.0).reshape(s1), format="mjd")
17151715
angle = np.full(np.prod(s2), 45.0).reshape(s2) * u.deg
17161716
AltAz(alt=angle, az=angle, obstime=time, location=where)
1717+
1718+
1719+
def test_spherical_offsets_by_broadcast():
1720+
"""Note: Regression test for #14383"""
1721+
assert SkyCoord(
1722+
ra=np.array([123, 134, 145]), dec=np.array([45, 56, 67]), unit=u.deg
1723+
).spherical_offsets_by(2 * u.deg, 2 * u.deg).shape == (3,)

0 commit comments

Comments
 (0)