Abstract Model Repository

18 views
Skip to first unread message

Jennifer

unread,
Jun 19, 2023, 1:49:16 PM6/19/23
to cobra pie
I have been having issues creating an Abstract Model Repository as I will need that to load models from BioModels.

I follow the code in  abstract_model_repository.py and without fail, I get ImportError: attempted relative import with no known parent package

how do I fix this, please?

ch.d...@gmail.com

unread,
Aug 25, 2023, 5:15:00 PM8/25/23
to cobra pie
Hmm could be your local development setup. But biomodels is already supported as a model repository. So it should work out of the box. For instance:

```
from cobra.io import load_model

mod = load_model("BIOMD0000001062")
```
Reply all
Reply to author
Forward
0 new messages