I suspect setdiff1d does not exist for old numpy versions

use python sets is probably safer

idx = list(set(range(len(inst.ch_names))) - bad_idx)

something like this