handcalcs
handcalcs copied to clipboard
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Hello, When trying to render a one-dimensional numpy array I am getting the following error.
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The behaviour is quite strange. If I have a 1d array within an equation it seems to render fine but If I define the array it wont render and I get the error.
If anyone has any suggestions how to manage this I would be very grateful.
This seems to be an issue with rendering physical units in an array but I may be wrong.
@connorferster is there a different way to render 1d arrays that I am missing? I note a similar issue on forallpeople but I think this is slightly different.