From 9eccae5d55edf0839825ba5d09a569ec945355aa Mon Sep 17 00:00:00 2001
From: Amy Stamile <astamile@usgs.gov>
Date: Mon, 22 Apr 2024 13:28:20 -0700
Subject: [PATCH] addressed PR feedback and minor fixes.

---
 knoten/utils.py | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/knoten/utils.py b/knoten/utils.py
index 554ebce..77da0bf 100644
--- a/knoten/utils.py
+++ b/knoten/utils.py
@@ -3,18 +3,18 @@ import numpy as np
 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
@@ -69,7 +69,7 @@ def distance(start, stop):
 
     return magnitude(diff)
 
-def radiansToDegrees(radian_lat_lon):
+def radians_to_degrees(radian_lat_lon):
     """
     Parameters
     ----------
@@ -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):
     """
-- 
GitLab