Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated manipulation2 #1208

Merged
merged 15 commits into from
Apr 29, 2022
Prev Previous commit
Next Next commit
fix typing and use of set
uri.akavia committed Apr 27, 2022
commit 66d04288a2e7abe6456ca64c73f19b104f5f0276
4 changes: 2 additions & 2 deletions src/cobra/manipulation/delete.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
import logging
from ast import And, BoolOp, Name, NodeTransformer
from functools import partial
from typing import TYPE_CHECKING, List, Optional, Set, Tuple, Union
from typing import TYPE_CHECKING, Iterable, List, Optional, Set, Tuple, Union

import numpy as np

@@ -85,7 +85,7 @@ def knock_out_model_genes(
A list of cobra.Reactions that had the bounds turned to zero.
"""
orig_bounds = model.reactions.list_attr("bounds")
for gene in model.genes.get_by_any(set(gene_list)):
for gene in model.genes.get_by_any(gene_list):
gene.knock_out()
new_bounds = model.reactions.list_attr("bounds")
reaction_list = list()