changeset 77:3b0e71e28c0b draft

Fix custom rules not in xml
author bimib
date Sun, 03 Jan 2021 21:45:12 +0000
parents 3f144565551f
children d73c470594c8
files Marea/ras_generator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Marea/ras_generator.py	Wed Jun 03 12:00:40 2020 -0400
+++ b/Marea/ras_generator.py	Sun Jan 03 21:45:12 2021 +0000
@@ -430,7 +430,7 @@
         react = recon.reactions
         rules = [react[i].gene_reaction_rule for i in range(len(react))]
         ids = [react[i].id for i in range(len(react))]
-    except cb.io.sbml3.CobraSBMLError:
+    except:
         try:
             data = (pd.read_csv(data, sep = '\t', dtype = str, engine='python')).fillna('')
             if len(data.columns) < 2: