# HG changeset patch # User luca_milaz # Date 1720444845 0 # Node ID a13119ab20d38972c794df2b08f188bc6ea6754e # Parent 166ed738733a2162740e97acaa83297e2e51a229 Uploaded diff -r 166ed738733a -r a13119ab20d3 marea_2_0/utils/general_utils.py --- a/marea_2_0/utils/general_utils.py Mon Jul 08 13:14:36 2024 +0000 +++ b/marea_2_0/utils/general_utils.py Mon Jul 08 13:20:45 2024 +0000 @@ -553,9 +553,9 @@ if(self is Model.Custom): return self.load_custom_model(customPath, customExtension) else: - return cobra.io.read_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(file_path :FilePath, ext :Optional[FileFormat] = None) -> cobra.Model: + def load_custom_model(self, file_path :FilePath, ext :Optional[FileFormat] = None) -> cobra.Model: """ Loads a custom model from a file, either in JSON or XML format.