Skip to content
Snippets Groups Projects
Commit 91d78887 authored by Le, Mia's avatar Le, Mia
Browse files

shortened toolnames

parent ad06a6c0
No related branches found
No related tags found
No related merge requests found
...@@ -162,6 +162,7 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Fal ...@@ -162,6 +162,7 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Fal
if second_occurrence_index > -1: if second_occurrence_index > -1:
# replace the character at that index with the replacement character # replace the character at that index with the replacement character
tool_name = tool[:second_occurrence_index] + '\n' + tool[second_occurrence_index + 1:] tool_name = tool[:second_occurrence_index] + '\n' + tool[second_occurrence_index + 1:]
tool_name = tool_name.replace('_hub_penalty', '').replace('damping_factor', 'df').replace('confidence_level', 'cl').replace('ranking_trustrank', 'tr')
tool_labels[idx] = tool_name tool_labels[idx] = tool_name
if plot: if plot:
#PLOT #PLOT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment