Skip to content

Commit

Permalink
Fix IMDtabler reads unused nodes #335
Browse files Browse the repository at this point in the history
Closes #335
  • Loading branch information
ethomas997 committed Jun 22, 2020
1 parent ef2d611 commit 329f3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/server.py
Expand Up @@ -3936,7 +3936,7 @@ def emit_imdtabler_page(**params):
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'])) # remove duplicates
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
Expand Down Expand Up @@ -3970,7 +3970,7 @@ def emit_imdtabler_rating():
try:
profile_freqs = json.loads(getCurrentProfile().frequencies)
imd_val = None
fi_list = list(OrderedDict.fromkeys(profile_freqs['f'])) # remove duplicates
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
Expand Down

0 comments on commit 329f3cb

Please sign in to comment.