# HG changeset patch # User luca_milaz # Date 1720443526 0 # Node ID 849df7951a0411627d598989c08d3ae5ab424fba # Parent 744dd6626af52719ef640497fb2d096d0ebef485 Uploaded diff -r 744dd6626af5 -r 849df7951a04 marea_2_0/utils/general_utils.py --- 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/"))