I would like to index ndarray in a tuple using a boolean mask such as below
ndarray
tuple
boolean mask
import numpy as np n_max = 5 list_no = np.a