https://bagelmobestcheapprice.blogspot.com/2023/02/numpy-truth-value-of-array-with-more.html
Numpy : The Truth Value Of An Array With More Than One Element Is Ambiguous