Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/cobra/flux_analysis/fastcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from typing import TYPE_CHECKING, List, Optional

from warnings import warn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting will complain about the empty line above.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I think I might not understand, the original is:

""Provide an implementation of FASTCC."""

from typing import TYPE_CHECKING, List, Optional

from optlang.symbolics import Zero

from .helpers import normalize_cutoff


Should there not be an empty line between the built-in functions, but empty lines between: built-ins, other packages, other modules? If so I understand, otherwise I am a bit lost


from optlang.symbolics import Zero

from .helpers import normalize_cutoff
Expand Down Expand Up @@ -33,6 +35,12 @@ def _find_sparse_mode(
The list of reactions to consider as consistent.

"""
warn("As of 2021, release V... this function contains a known bug "
"which allows reactions with zero net flux to be considered active,"
" as well as known discrepancies between this function "
"(the cobrapy implementation) and its matlab implementation "
"present in the cobra toolbox, "
"see: https://github.com/opencobra/cobrapy/issues/1154")
if rxns:
obj_vars = []
vars_and_cons = []
Expand Down
Loading