Skip to content

Commit

Permalink
test f-string with embedded quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Sep 8, 2024
1 parent 3958dc2 commit dab95ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sandpit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

from math import acos, atan2, cos, pi, radians, sin
from os import getenv

WGS84 = "WGS_84"
WGS84_SMAJ_AXIS = 6378137.0 # semi-major axis
Expand Down Expand Up @@ -51,6 +52,7 @@ def bearing(lat1: float, lon1: float, lat2: float, lon2: float) -> float:
:rtype: float
"""

print(f"This is a dodgy f-string {getenv("PATH", "test")}")
coordinates = lat1, lon1, lat2, lon2
phi1, lambda1, phi2, lambda2 = [radians(c) for c in coordinates]
y = sin(lambda2 - lambda1) * cos(phi2)
Expand Down

0 comments on commit dab95ec

Please sign in to comment.