Questions and discussion for this lecture live here. Fire away by hitting Reply below
Hi Sean, love the course so far. In the part āSolve for reaction forcesā I get the following message: ā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.)
UG[i] = U[c]ā Iām relatively new to Python so after some research iām not able to solve/understand this message. Do you get this message yourself? For now it is not really a problem, because code (seems) to run without any troubles.
I think I found the answer alreadyā¦you need to convert back to scalar by adding .item()ā¦so UG[i] = U[c].item()
Works without warnig now ans still provide the same endresult.
Hey @martijn
Fantastic - I really appreciate you taking the time to come back and update the comment. Posts like this really help other students (and me!) out.
Cheers,
SeƔn