Skip to content

Commit

Permalink
Model.change_objective no longer deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
aebrahim committed Jun 25, 2015
1 parent b00c6b2 commit 5819858
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cobra/core/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,7 @@ def repair(self, rebuild_index=True, rebuild_relationships=True):
return

def change_objective(self, objectives):
"""Change the model objective
.. deprecated:: 0.4
Use the objective setter instead"""
warn("Deprecated. Use the objective setter "
"(Model.objective = ...) instead")
"""Change the model objective"""
self.objective = objectives

@property
Expand Down

0 comments on commit 5819858

Please sign in to comment.