Skip to content

Commit e949381

Browse files
authored
Added warning to inform users of known bug and issues fastcc.py
1 parent e5fc6ed commit e949381

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cobra/flux_analysis/fastcc.py

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from typing import TYPE_CHECKING, List, Optional
44

5+
from warnings import warn
6+
57
from optlang.symbolics import Zero
68

79
from .helpers import normalize_cutoff
@@ -33,6 +35,12 @@ def _find_sparse_mode(
3335
The list of reactions to consider as consistent.
3436
3537
"""
38+
warn("As of 2021, release V... this function contains a known bug "
39+
"which allows reactions with zero net flux to be considered active,"
40+
" as well as known discrepancies between this function "
41+
"(the cobrapy implementation) and its matlab implementation "
42+
"present in the cobra toolbox, "
43+
"see: https://github.com/opencobra/cobrapy/issues/1154")
3644
if rxns:
3745
obj_vars = []
3846
vars_and_cons = []

0 commit comments

Comments
 (0)