I want delete the array from list of arrays in that way
i = np.array([1,2])
facets = [np.array([1,2]),np.array([3,4])]
I want remove an element
facets.remove(np.array(i[0],i[1]))
but obtain an error:
ValueError Traceback (most recent call last)
<ipython-input-131-c0d040653e23> in <module>()
----> 1 facets.remove([i[0],i[2]])
ValueError: The truth value of an array with more than one element is ambiguous.
Use a.any() or a.all()
Is there a way to solve that problem?
facetsthrows an error.facets.remove(np.array([i[0],i[1]])).