def check_equals_returnsData(M): data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components']) assert len(data) > 0
def check_noiseFilter(M): data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components']) noiseStatus = [ (d['gmStatus4Components'] == 1) for d in data] assert all(noiseStatus)
def check_noiseyData(M): '''Test if we get back any noisy results if we switch the noise filter off''' data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components'] , False) noiseStatus = [ d['gmStatus4Components'] == 0 for d in data] assert any(noiseStatus)
def check_equals_M(M): data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components']) mags = [ (d['MwFnet'] == M) for d in data] mags_999 = [(d['MwFnet'] == -999) for d in data] assert all(mags) assert not any(mags_999)