Skip to content

Commit 1a5ef53

Browse files
committed
Fixed another instance of Python 2.7 backwards compatibility for list copying
1 parent 691345a commit 1a5ef53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dfols/trust_region.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def ctrsbox(xopt, g, H, projections, delta, d_max_iters=100, d_tol=1e-10, use_fo
109109
trproj = lambda w: pball(w, xopt, delta)
110110

111111
# combine trust region constraints with user-entered constraints
112-
P = projections.copy()
112+
P = list(projections) # make a copy of the projections list
113113
P.append(trproj)
114114
def proj(d0):
115115
p = dykstra(P, xopt+d0, max_iter=d_max_iters, tol=d_tol)

0 commit comments

Comments
 (0)