def outside_mchirp_window(template,signal,w): template_mchirp,et = mass1_mass2_to_mchirp_eta(template.mass1,template.mass2) signal_mchirp ,et = mass1_mass2_to_mchirp_eta(signal.mass1,signal.mass2) if abs(signal_mchirp - template_mchirp) > (w*signal_mchirp) : return True else : False