diff --git a/opencsp/common/lib/geometry/LineXY.py b/opencsp/common/lib/geometry/LineXY.py index 54804cb7..3a3e5e20 100644 --- a/opencsp/common/lib/geometry/LineXY.py +++ b/opencsp/common/lib/geometry/LineXY.py @@ -104,9 +104,9 @@ def slope(self) -> float: else: # use the original two points to determine the positivity of the slope if self._original_two_points[1].y[0] > self._original_two_points[0].y[0]: - return np.PINF + return np.inf else: - return np.NINF + return -np.inf # return the slope return -self.A / self.B diff --git a/opencsp/common/lib/geometry/Pxy.py b/opencsp/common/lib/geometry/Pxy.py index 747fbd8d..f4baadae 100644 --- a/opencsp/common/lib/geometry/Pxy.py +++ b/opencsp/common/lib/geometry/Pxy.py @@ -29,7 +29,7 @@ def __init__(self, data, dtype=float): def __repr__(self): return "2D Point:\n" + self._data.__repr__() - def distance(self, data_in: "Pxy") -> npt.NDArray[np.float_]: + def distance(self, data_in: "Pxy") -> npt.NDArray[np.float64]: """ Calculates the Euclidean distance between this point and another Pxy point. @@ -59,7 +59,7 @@ def distance(self, data_in: "Pxy") -> npt.NDArray[np.float_]: return (self - data_in).magnitude() - def angle_from(self, origin: "Pxy") -> npt.NDArray[np.float_]: + def angle_from(self, origin: "Pxy") -> npt.NDArray[np.float64]: """ Returns the rotation angle in which this point lies relative to the given origin point. diff --git a/opencsp/common/lib/geometry/Vxy.py b/opencsp/common/lib/geometry/Vxy.py index 7f1ea3d8..dcafd7b1 100644 --- a/opencsp/common/lib/geometry/Vxy.py +++ b/opencsp/common/lib/geometry/Vxy.py @@ -268,7 +268,7 @@ def magnitude(self) -> npt.NDArray[np.float64]: """ return np.sqrt(np.sum(self._data**2, 0)) - def angle(self) -> npt.NDArray[np.float_]: + def angle(self) -> npt.NDArray[np.float64]: """ Returns the orientation relative to the origin for each vector, in radians in the standard coordinate system (0 on the x-axis to the right, diff --git a/requirements.txt b/requirements.txt index a06662d9..0976324b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,8 +23,8 @@ pyexiftool >= 0.5.6 # packages that can't be installed with conda but can be installed with pip on solo #pippkgs ipykernel >= 6.29.3 -opencv-contrib-python >= 4.8.1.78, < 4.10.0.84 -numpy < 2.0.0 +opencv-contrib-python == 4.11.0.86 +numpy < 2.0.0 # jhs updated, 02/06/2026, support for version 1 of numpy has been stopped. pytest >= 8.1.1 python-pptx >= 0.6.23 rawpy >= 0.19.1 @@ -40,4 +40,4 @@ pytest-xvfb >= 3.0.0 pytest-cov >= 4.1.0 # these are packages that have not been evaluated for compatibility with solo -nbconvert >= 7.16.6 \ No newline at end of file +nbconvert >= 7.16.6