changeset 236:849df7951a04 draft

Uploaded
author luca_milaz
date Mon, 08 Jul 2024 12:58:46 +0000
parents 744dd6626af5
children 4f97bd21f3a1
files marea_2_0/utils/general_utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2_0/utils/general_utils.py	Mon Jul 08 12:56:53 2024 +0000
+++ b/marea_2_0/utils/general_utils.py	Mon Jul 08 12:58:46 2024 +0000
@@ -550,7 +550,7 @@
         return readSvg(path, customErr = DataErr(path, f"custom map in wrong format"))
     
     def getCOBRAmodel(self, toolDir = ".", customPath :Optional[FilePath] = None, customExtension :Optional[FilePath]=None)->cobra.Model:
-        if(self is Model.custom):
+        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/"))