Skip to content

Commit 35dd8b2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 12822a9 commit 35dd8b2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

geodesy/lamberts_ellipsoidal_distance.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def lamberts_ellipsoidal_distance(
8787
# Compute central angle between two points
8888
# using haversine theta. sigma = haversine_distance / equatorial radius
8989
sigma = haversine_distance(lat1, lon1, lat2, lon2) / EQUATORIAL_RADIUS
90-
9190

9291
# Intermediate P and Q values
9392
p_value = (b_lat1 + b_lat2) / 2
@@ -107,8 +106,11 @@ def lamberts_ellipsoidal_distance(
107106

108107
return EQUATORIAL_RADIUS * (sigma - ((flattening / 2) * (x_value + y_value)))
109108

110-
print(f"SF-Yosemite: {lamberts_ellipsoidal_distance(37.774856, -122.424227, 37.864742, -119.537521):0,.0f}")
111-
print(f"Expected ~254km but got ???")
109+
110+
print(
111+
f"SF-Yosemite: {lamberts_ellipsoidal_distance(37.774856, -122.424227, 37.864742, -119.537521):0,.0f}"
112+
)
113+
print(f"Expected ~254km but got ???")
112114

113115
if __name__ == "__main__":
114116
import doctest

0 commit comments

Comments
 (0)