Skip to content

Commit

Permalink
fix: use true identity test
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnighter committed Aug 31, 2018
1 parent 58150ac commit 58a664a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobra/manipulation/modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def rename_genes(cobra_model, rename_dict):
if old_gene_present and new_gene_present:
old_gene = cobra_model.genes.get_by_id(old_name)
# Added in case not renaming some genes:
if old_gene != cobra_model.genes.get_by_id(new_name):
if old_gene is not cobra_model.genes.get_by_id(new_name):
remove_genes.append(old_gene)
recompute_reactions.update(old_gene._reaction)
elif old_gene_present and not new_gene_present:
Expand Down

0 comments on commit 58a664a

Please sign in to comment.