-
Notifications
You must be signed in to change notification settings - Fork 228
Added fast gapfilling flag. All tests pass with fast_gapfill=True #1450
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
base: devel
Are you sure you want to change the base?
Added fast gapfilling flag. All tests pass with fast_gapfill=True #1450
Conversation
…ck needs to happen instead of nrxns checks
|
Hey folks, apologies for the slow turnaround. I finally got around to fixing the linting errors. Please rerun the workflow and it should hopefully pass all the tests, now. |
|
Hmm... the unit tests failed because the Biomodels.net website was down. Reported this issue #1455 and suggested a fix. |
| The threshold at which a value is considered non-zero (aka | ||
| integrality threshold). If gapfilled models fail to validate, | ||
| you may want to lower this value (default 1E-6). | ||
| fast_gapfill : bool, optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is already a gapfill function I think having it in the argument name is redundant. Just calling it "fast" should be enough. Or call it "method" and make it a string to allow for other algorithms in the future.
| iterations pathways including 10 steps will eventually be reported | ||
| even if the shortest pathway is a single reaction (default 1). | ||
| fast_gapfill : bool, optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before.
| The total number of reactions in the model having ID `model_id`. | ||
| """ | ||
| if os.getenv("CI") == "true": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better remove this here and let's solve this in a separate PR which we can then rebase on. Right now this is also missing the os import which is making the CI fail. Thx
|
Looking great. I will start a separate PR for the Biomodels tests issue we might need to merge beforehand. |
fast_gapfilltocobra.flux_analysis.gapfilling.gapfill()that, whenTrue, changes the indicator variable types to becontinuousinstead ofbinary, enabling fast gapfillingtest_fast_gapfillingtest intests/test_flux_analysis/test_gapfilling.pyand it passes