Skip to content

Commit

Permalink
Use correct label for the harmonize algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Dec 17, 2024
1 parent 049bbff commit 9aefe57
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def initialized_on_problem(self, problem, role):
return new_spec

def evaluate(self, problem):
"""Return the evaluation for mode==best_codon."""
"""Return the evaluation for method=="harmonize_rca"."""
codons = self.get_codons(problem)

if len(codons) == 1:
Expand Down Expand Up @@ -165,7 +165,14 @@ def label_parameters(self):
return [self.original_species + " -> " + self.species]

def short_label(self):
result = "best-codon-optimize"
short_label = "harmonize-rca ("
if self.species is not None:
result += " (%s)" % self.species
return result
target_species = self.species
else:
target_species = "custom table"
if self.original_species is not None:
original_species = self.original_species
else:
original_species = "custom table"
result += " (%s)" % self.species
return short_label + original_species + " -> " + target_species + ")"

0 comments on commit 9aefe57

Please sign in to comment.