Questions and discussion for this lecture live here. Fire away by hitting Reply below ![]()
We are getting the following error message.
“ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()”
on the following line
if i_hor in restrainedIndex and i_ver in restrainedIndex:
Hey @mike.ecinwa - this error suggests that your variables i_hor and/or i_ver are arrays rather than integers. I suggest adding a print statement before the line that triggers the error to print out i_hor and i_ver to see what they actually are - then you can trace the error back up the chain.
Feel free to follow up with more information.
Seán