cokelaer / bioservices

Access to Biological Web Services from Python.
http://bioservices.readthedocs.io
Other
278 stars 60 forks source link

`biomodels.get_all_models()` caught in endless while loop #208

Closed slobentanzer closed 2 years ago

slobentanzer commented 2 years ago

Calling get_all_models() in biomodels.py without parameters results in an endless loop with ever increasing offset. Somehow, there are also two alternating offsets, with one higher than the other. I think the stopping criteria for the loop need to be adjusted to terminate correctly. I didn't go into what causes the two different offsets.

slobentanzer commented 2 years ago

Replacing the while statement with while len(res["facets"]): worked for me