cobrapy
cobrapy copied to clipboard
Showing progress during flux variability analysis.
Checklist
- [ ] There are no similar issues or pull requests for this yet.
Is your feature related to a problem? Please describe it.
Describe the solution you would like.
The currently implementation of FVA within cobrapy is generally slow (definitely improved using the processes
flag. Would be nice to see the current progress since the program sometimes seems stalled for large networks. What say? I was planning on using tqdm
within variability.py
at line 247.
e.g.

Describe alternatives you considered
Additional context
Good idea. We already have rich as a dependency, so would be better to use rich.progress.track for that. There should also be a toggle to turn that on and off, since some workloads may run an FVA for thousands of models and may not want a progress bar for each iteration. Or one could couple it to the logging level and only show it on INFO...
I'll do that accordingly.
@cdiener Done. PF Pull Request.