Skip to content

Commit e3f4530

Browse files
Copilotmmcky
andcommitted
Fix NumPy 2.0 compatibility: Replace np.asfarray with np.asarray
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
1 parent 7f37a33 commit e3f4530

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

lectures/_static/lecture_specific/amss2/recursive_allocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def objf(z):
230230
def objf_prime(x):
231231

232232
epsilon = 1e-7
233-
x0 = np.asfarray(x)
233+
x0 = np.asarray(x, dtype=float)
234234
f0 = np.atleast_1d(objf(x0))
235235
jac = np.zeros([len(x0), len(f0)])
236236
dx = np.zeros(len(x0))

0 commit comments

Comments
 (0)