Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlexGriffiths526 opened this issue Oct 26, 2023 · 1 comment

Comments

@AlexGriffiths526
Copy link

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
Copy link
Author

AlexGriffiths526 commented Nov 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant