@@ -120,7 +120,7 @@ def vdist(
120120 if (abs (Lat1 ) > 90 ).any () | (abs (Lat2 ) > 90 ).any ():
121121 raise ValueError ("Input latitudes must be in [-90, 90] degrees." )
122122 except NameError :
123- if (abs (Lat1 ) > 90 ) | (abs (Lat2 ) > 90 ): # type: ignore
123+ if (abs (Lat1 ) > 90 ) | (abs (Lat2 ) > 90 ):
124124 raise ValueError ("Input latitudes must be in [-90, 90] degrees." )
125125 # %% Supply WGS84 earth ellipsoid axis lengths in meters:
126126 a = ell .semimajor_axis
@@ -155,7 +155,7 @@ def vdist(
155155 L [L > pi ] = 2 * pi - L [L > pi ]
156156 except TypeError :
157157 if L > pi :
158- L = 2 * pi - L # type: ignore
158+ L = 2 * pi - L
159159
160160 lamb = copy (L ) # NOTE: program will fail without copy!
161161 itercount = 0
@@ -167,7 +167,7 @@ def vdist(
167167 if not warninggiven :
168168 logging .warning ("Essentially antipodal points--precision may be reduced slightly." )
169169
170- lamb = pi # type: ignore
170+ lamb = pi
171171 break
172172
173173 lambdaold = copy (lamb )
@@ -213,7 +213,7 @@ def vdist(
213213 # print(f'then, lambda(21752) = {lamb[21752],20})
214214 # correct for convergence failure for essentially antipodal points
215215 try :
216- i = (lamb > pi ).any () # type: ignore
216+ i = (lamb > pi ).any ()
217217 except AttributeError :
218218 i = lamb > pi
219219
@@ -222,11 +222,11 @@ def vdist(
222222 "Essentially antipodal points encountered. Precision may be reduced slightly."
223223 )
224224 warninggiven = True
225- lambdaold = pi # type: ignore
226- lamb = pi # type: ignore
225+ lambdaold = pi
226+ lamb = pi
227227
228228 try :
229- notdone = (abs (lamb - lambdaold ) > 1e-12 ).any () # type: ignore
229+ notdone = (abs (lamb - lambdaold ) > 1e-12 ).any ()
230230 except AttributeError :
231231 notdone = abs (lamb - lambdaold ) > 1e-12
232232
@@ -347,7 +347,7 @@ def vreckon(
347347 if (Rng < 0.0 ).any ():
348348 raise ValueError ("Ground distance must be positive" )
349349 except NameError :
350- if abs (Lat1 ) > 90.0 : # type: ignore
350+ if abs (Lat1 ) > 90.0 :
351351 raise ValueError ("Input lat. must be between -90 and 90 deg., inclusive." )
352352 if Rng < 0.0 :
353353 raise ValueError ("Ground distance must be positive" )
0 commit comments