How do I test if a numpy array is empty. I have problem if the there is only one element with value 0. If I do
a = np.array([0])
a.any()
results is False while
a = np.array([1])
a.any()
is True
So how do I check np.array has no elements?