Mercurial > repos > bimib > marea_2_0
changeset 247:419c4fc75d6c draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 08 Jul 2024 13:42:35 +0000 |
parents | c2981cdb2dd7 |
children | 4f3c4587bd4b |
files | marea_2_0/utils/general_utils.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2_0/utils/general_utils.py Mon Jul 08 13:37:54 2024 +0000 +++ b/marea_2_0/utils/general_utils.py Mon Jul 08 13:42:35 2024 +0000 @@ -553,6 +553,7 @@ if(self is Model.Custom): return self.load_custom_model(customPath, customExtension) else: + (model, errors) = cobra.io.validate_sbml_model(FilePath(f"{self.name}", FileFormat.XML, prefix = f"{toolDir}/local/COBRA models/")) return cobra.io.read_sbml_model(FilePath(f"{self.name}", FileFormat.XML, prefix = f"{toolDir}/local/COBRA models/")) def load_custom_model(self, file_path :FilePath, ext :Optional[FileFormat] = None) -> cobra.Model: