update_objective function error

joshlerman
2012-05-22
2013-05-30
  • joshlerman
    joshlerman
    2012-05-22

    this is in flux_analysis/solvers.py

    we accidentally index on a reaction object instead of an integer when the objective is supplied as a string.

    quick fix: line 39 should read:                the_index = cobra_model.reactions.index(the_objective)

     
  • Daniel Hyduke
    Daniel Hyduke
    2012-06-11

    Moved to bugs