Skip to content

Commit

Permalink
ObjectiveFunction defines a default name now.
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomas1234 committed Apr 23, 2015
1 parent 8c3c289 commit e4cb577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cameo/strain_design/heuristic/objective_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ def __call__(self, model, solution, decoded_representation):
raise NotImplementedError

def _repr_latex_(self):
return self.__class__.__name__
return self.name

@property
def name(self):
raise NotImplementedError
return self.__class__.__name__


class biomass_product_coupled_yield(ObjectiveFunction):
Expand Down

0 comments on commit e4cb577

Please sign in to comment.