src/server/server.py
def emit_imdtabler_page(**params):
    '''Emits IMDTabler page, using current profile frequencies.'''
    if Use_imdtabler_jar_flag:
        try:                          # get IMDTabler version string
            imdtabler_ver = subprocess.check_output( \
                                'java -jar ' + IMDTABLER_JAR_NAME + ' -v', shell=True).rstrip()
            profile_freqs = json.loads(getCurrentProfile().frequencies)
            fi_list = list(OrderedDict.fromkeys(profile_freqs['f'][:RACE.num_nodes]))  # remove duplicates
            fs_list = []
            for val in fi_list:  # convert list of integers to list of strings
                if val > 0:      # drop any zero entries
                    fs_list.append(str(val))
            emit_imdtabler_data(fs_list, imdtabler_ver)
        except Exception:
            logger.exception('emit_imdtabler_page exception')
Emits IMDTabler page, using current profile frequencies.
Emits IMDTabler page, using current profile frequencies.
Emits IMDTabler page using current profile frequencies .
def emit_imdtabler_page(**params):
    if Use_imdtabler_jar_flag:
        try:                          
            imdtabler_ver = subprocess.check_output( \
                                'java -jar ' + IMDTABLER_JAR_NAME + ' -v', shell=True).rstrip()
            profile_freqs = json.loads(getCurrentProfile().frequencies)
            fi_list = list(OrderedDict.fromkeys(profile_freqs['f'][:RACE.num_nodes]))  
            fs_list = []
            for val in fi_list:  
                if val > 0:      
                    fs_list.append(str(val))
            emit_imdtabler_data(fs_list, imdtabler_ver)
        except Exception:
            logger.exception('emit_imdtabler_page exception')
def emit_imdtabler_page ( ** params ) : if Use_imdtabler_jar_flag : try : imdtabler_ver = subprocess . check_output ( 'java -jar ' + IMDTABLER_JAR_NAME + ' -v' , shell = True ) . rstrip ( ) profile_freqs = json . loads ( getCurrentProfile ( ) . frequencies ) fi_list = list ( OrderedDict . fromkeys ( profile_freqs [ 'f' ] [ : RACE . num_nodes ] ) ) fs_list = [ ] for val in fi_list : if val > 0 : fs_list . append ( str ( val ) ) emit_imdtabler_data ( fs_list , imdtabler_ver ) except Exception : logger . exception ( 'emit_imdtabler_page exception' )
Emits IMDTabler page, using current profile frequencies.
Emits IMDTabler page using current profile frequencies .
'''Emits IMDTabler page, using current profile frequencies.''' # get IMDTabler version string # remove duplicates # convert list of integers to list of strings # drop any zero entries