Пример #1
0
def check_name(model):
    '''
    check that model name corresponds to one of the available
    '''
    if AVAIL.has_key(sub('\..*', '', model)):
        return model, AVAIL [sub('\..*', '', model)]
Пример #2
0
def check_name(model):
    '''
    check that model name corresponds to one of the available
    '''
    if AVAIL.has_key(sub('\..*', '', model)):
        return model, AVAIL[sub('\..*', '', model)]
Пример #3
0
                colors.append(col['RX+'])
        elif class1 == 1:
            if pval < 0.99:
                colors.append(col['CN'])
            else:
                colors.append(col['CN+'])
        elif class1 == class2 and (winner in ['M2', 'M8', 'SLR']):
            if pval < 0.99:
                colors.append(col['PS'])
            else:
                colors.append(col['PS+'])
        elif class1 == class2:
            if pval < 0.99:
                colors.append(col['RX'])
            else:
                colors.append(col['RX+'])
        else:
            colors.append(col['NS'])
    return colors



Model.__doc__ = Model.__doc__ % \
                ('\n'.join([ '          %-8s   %-27s   %-15s  ' % \
                             ('%s' % (x), AVAIL[x]['evol'], AVAIL[x]['typ']) \
                             for x in sorted(sorted(AVAIL.keys()),
                                              cmp=lambda x, y: \
                                              cmp(AVAIL[x]['typ'],
                                                  AVAIL[y]['typ']),
                                              reverse=True)]))
Пример #4
0
                colors.append(col['RX+'])
        elif class1 == 1:
            if pval < 0.99:
                colors.append(col['CN'])
            else:
                colors.append(col['CN+'])
        elif class1 == class2 and (winner in ['M2', 'M8', 'SLR']):
            if pval < 0.99:
                colors.append(col['PS'])
            else:
                colors.append(col['PS+'])
        elif class1 == class2:
            if pval < 0.99:
                colors.append(col['RX'])
            else:
                colors.append(col['RX+'])
        else:
            colors.append(col['NS'])
    return colors



Model.__doc__ = Model.__doc__ % \
                ('\n'.join([ '          %-8s   %-27s   %-15s  ' % \
                             ('%s' % (x), AVAIL[x]['evol'], AVAIL[x]['typ']) \
                             for x in sorted(sorted(AVAIL.keys()),
                                              cmp=lambda x, y: \
                                              cmp(AVAIL[x]['typ'],
                                                  AVAIL[y]['typ']),
                                              reverse=True)]))