Hi guys, I've wrote a code to solve an optimization problem (long long code) a while ago (1 and half years) and now I decided to use it again but some weird warning popped up:
/var/folders/jr/2rw78jp90ygcq5vy168_l29w0000gn/T/ipykernel_75922/3476840333.py:126: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
coeff[i,0] = x_[5*i]
/var/folders/jr/2rw78jp90ygcq5vy168_l29w0000gn/T/ipykernel_75922/3476840333.py:127: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
coeff[i,1] = x_[5*i + 1]
/var/folders/jr/2rw78jp90ygcq5vy168_l29w0000gn/T/ipykernel_75922/3476840333.py:128: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
coeff[i,2] = x_[5*i + 2]
/var/folders/jr/2rw78jp90ygcq5vy168_l29w0000gn/T/ipykernel_75922/3476840333.py:129: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
coeff[i,3] = x_[5*i + 3]
Does anybody have any idea about what might this be and what should I change ? I could post the entire code but it is really really long so if I can get some hints from there I'd appreciate it a lot.
Thanks