Skip to content

Commit

Permalink
addressed PR feedback and minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
amystamile-usgs committed Apr 22, 2024
1 parent 54fa5f1 commit 9eccae5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions knoten/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
from typing import NamedTuple

class Point(NamedTuple):
x: float
y: float
z: float
x: np.double
y: np.double
z: np.double

class LatLon(NamedTuple):
lat: float
lon: float
lat: np.double
lon: np.double

class Sphere(NamedTuple):
lat: float
lon: float
radius: float
lat: np.double
lon: np.double
radius: np.double

class Matrix(NamedTuple):
vec_a: Point
Expand Down Expand Up @@ -69,7 +69,7 @@ def distance(start, stop):

return magnitude(diff)

def radiansToDegrees(radian_lat_lon):
def radians_to_degrees(radian_lat_lon):
"""
Parameters
----------
Expand All @@ -84,8 +84,8 @@ def radiansToDegrees(radian_lat_lon):
degree_lon += 2 * np.pi

degree_lon = np.rad2deg(degree_lon)
degreeLat = np.rad2deg(radian_lat_lon.lat)
return LatLon(degreeLat, degree_lon)
degree_lat = np.rad2deg(radian_lat_lon.lat)
return LatLon(degree_lat, degree_lon)

def spherical_to_rect(spherical):
"""
Expand Down

0 comments on commit 9eccae5

Please sign in to comment.