changeset 241:a13119ab20d3 draft

Uploaded
author luca_milaz
date Mon, 08 Jul 2024 13:20:45 +0000
parents 166ed738733a
children deea81524e6d
files marea_2_0/utils/general_utils.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.