def testlines(fid):
    """Check the raw file for frequency base"""
    first = fid.readline()
    first = first.strip().split('/')
    first = first[0].split(',')
    if float(first[5]) == 50.0 or float(first[5]) == 60.0:
        return True
    else:
        return False
def testlines ( fid ) : first = fid . readline ( ) first = first . strip ( ) . split ( '/' ) first = first [ 0 ] . split ( ',' ) if float ( first [ 5 ] ) == 50.0 or float ( first [ 5 ] ) == 60.0 : return True else : return False
Check the raw file for frequency base