# HG changeset patch # User luca_milaz # Date 1756991001 0 # Node ID fe87d6fd7884d06ab8dcee46899350bdda420e97 # Parent da4f5f4a9046d55a88f41a32cc1b41fb6ccf1011 Uploaded diff -r da4f5f4a9046 -r fe87d6fd7884 COBRAxy/utils/general_utils.py --- a/COBRAxy/utils/general_utils.py Thu Sep 04 12:51:12 2025 +0000 +++ b/COBRAxy/utils/general_utils.py Thu Sep 04 13:03:21 2025 +0000 @@ -606,10 +606,10 @@ def load_custom_model(self, file_path :FilePath, ext :Optional[FileFormat] = None) -> cobra.Model: ext = ext if ext else file_path.ext try: - if ext in FileFormat.XML: + if str(ext) in FileFormat.XML.value: return cobra.io.read_sbml_model(file_path.show()) - if ext in FileFormat.JSON: + if str(ext) in FileFormat.JSON.value: # Compressed files are not automatically handled by cobra if(ext == "json"): return cobra.io.load_json_model(file_path.show())