Skip to content

Commit b31441c

Browse files
committed
Fix numpy infty to inf for new version in optimization.py
1 parent 8acde6d commit b31441c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portpy/photon/optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def create_cvxpy_problem(self):
156156
else:
157157
constraint_def += [opt_constraint]
158158

159-
d_max = np.infty * np.ones(A.shape[0]) # create a vector to avoid putting redundant max constraint on
159+
d_max = np.inf * np.ones(A.shape[0]) # create a vector to avoid putting redundant max constraint on
160160
# duplicate voxels among structure
161161

162162
# Adding constraints

0 commit comments

Comments
 (0)