Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opencsp/common/lib/geometry/LineXY.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions opencsp/common/lib/geometry/Pxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion opencsp/common/lib/geometry/Vxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,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,
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ 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.10.0.84
# opencv-contrib-python >= 4.8.1.78, < 4.10.0.84
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
Expand Down
Loading