@@ -16,8 +16,8 @@ def _weighted_standard_deviation(x: ArrayLike, weights: Optional[ArrayLike] = No
16
16
17
17
18
18
def standard_error (
19
- standard_deviation : Union [ArrayLike [ Union [ float , int ]] , float , int ],
20
- number_of_measurements : Union [ArrayLike [ int ] , int ],
19
+ standard_deviation : Union [ArrayLike , float , int ],
20
+ number_of_measurements : Union [ArrayLike , int ],
21
21
) -> float :
22
22
"""Calculates the standard error on the mean of some parameter given the standard
23
23
deviation.
@@ -64,7 +64,7 @@ def mean_and_deviation(
64
64
)
65
65
66
66
67
- def lonlat_to_unitvec (longitudes : NDArray , latitudes : NDArray ):
67
+ def lonlat_to_unitvec (longitudes : ArrayLike , latitudes : ArrayLike ):
68
68
"""Converts longitudes and latitudes to unit vectors on a unit sphere. Uses method
69
69
at https://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates.
70
70
Assumes that latitudes is in the range [-pi / 2, pi / 2] as is common in
@@ -76,7 +76,7 @@ def lonlat_to_unitvec(longitudes: NDArray, latitudes: NDArray):
76
76
return np .column_stack ((x , y , z ))
77
77
78
78
79
- def unitvec_to_lonlat (unit_vectors : NDArray ):
79
+ def unitvec_to_lonlat (unit_vectors : ArrayLike ):
80
80
"""Converts unit vectors on a unit sphere to longitudes and latitudes. See
81
81
`lonlat_to_unitvec` for more details.
82
82
"""
0 commit comments