def undelete_model_genes(cobra_model):
if cobra_model._trimmed_genes is not None:<EOL><INDENT>for x in cobra_model._trimmed_genes:<EOL><INDENT>x.functional = True<EOL><DEDENT><DEDENT>if cobra_model._trimmed_reactions is not None:<EOL><INDENT>for the_reaction, (lower_bound, upper_bound) incobra_model._trimmed_reactions.items():<EOL><INDENT>the_reaction.lower_bound = lower_bound<EOL>the_reaction.upper_bound = upper_bound<EOL><DEDENT><DEDENT>cobra_model._trimmed_genes = []<EOL>cobra_model._trimmed_reactions = {}<EOL>cobra_model._trimmed = False<EOL>
Undoes the effects of a call to delete_model_genes in place.

    cobra_model:  A cobra.Model which will be modified in place