Beispiel #1
0
def check_equals_returnsData(M):
    data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components'])
    assert len(data) > 0
Beispiel #2
0
def check_noiseFilter(M):
    data = kiknet.paramEquals('MwFnet', M, ['gmNo' , 'MwFnet' , 'gmStatus4Components'])
    noiseStatus = [ (d['gmStatus4Components'] == 1) for d in data]
    assert all(noiseStatus)
Beispiel #3
0
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)
Beispiel #4
0
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)