# HG changeset patch # User luca_milaz # Date 1720447125 0 # Node ID 35a04c97b2321b69b7ef4099b6c48f0f6e202f07 # Parent cb3276d74f51d2a3d9ca554b6709619e49b4a7bc Uploaded diff -r cb3276d74f51 -r 35a04c97b232 marea_2_0/utils/general_utils.py --- a/marea_2_0/utils/general_utils.py Mon Jul 08 13:49:06 2024 +0000 +++ b/marea_2_0/utils/general_utils.py Mon Jul 08 13:58:45 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/").show()) 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: