Skip to content

Commit ae5513f

Browse files
eteqcdeil
authored andcommitted
Changed units-checking to work on real first argument
1 parent 1b4ab8b commit ae5513f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎astropy/coordinates/angles.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def __init__(self, lon1, lat1, lon2, lat2, units,
689689
'result.'))
690690

691691
units = u.Unit(units)
692-
lat1 = units.to(u.radian, lat1)
692+
lon1 = units.to(u.radian, lon1)
693693
if 0 == lon1 == lat2 == lon2:
694694
sepval = lat1
695695
else:

0 commit comments

Comments
 (0)