in1d is not available in old numpy. We have one in fixes.py but I'd use python list here

ref_idx = [self.ch_names.index(c) for c in ref_channels]