Skip to content

Commit 3405c82

Browse files
committed
RFC: avoid a deprecation warning from numpy (implicit conversion from array to scalar)
1 parent 92028f9 commit 3405c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vip_hci/fm/negfc_simplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ def firstguess(cube, angs, psfn, planets_xy_coord, ncomp=1, fwhm=4,
792792
verbose=False)
793793
if force_rPA:
794794
r_0[i_planet], theta_0[i_planet] = (r_pre, theta_pre)
795-
f_0[i_planet] = res.x[:]
795+
f_0[i_planet] = res.x.item()
796796
else:
797797
r_0[i_planet] = res.x[0]
798798
theta_0[i_planet] = res.x[1]

0 commit comments

Comments
 (0)