handcalcs icon indicating copy to clipboard operation
handcalcs copied to clipboard

The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Open AlexGriffiths526 opened this issue 2 years ago • 1 comments

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.

AlexGriffiths526 avatar Oct 26 '23 09:10 AlexGriffiths526

image

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.

issue 18

AlexGriffiths526 avatar Nov 07 '23 14:11 AlexGriffiths526