Modified:
/trunk/sympycore/physics/sysbio/io.py
=======================================
--- /trunk/sympycore/physics/sysbio/io.py Thu Apr 14 04:42:39 2011
+++ /trunk/sympycore/physics/sysbio/io.py Wed May 25 00:01:53 2011
@@ -227,6 +227,8 @@
reaction_name = None
if not line or line.startswith ('#'): continue
+ reaction_string = line
+
reversible = False
left, right = line.split ('=')
direction = '='
@@ -334,6 +336,7 @@
reactions_info[reaction_name2]['products'] =
left_specie_names
reactions_info[reaction_name2]['forward'] = reaction_name2
reactions_info[reaction_name2]['reverse'] = None
+ # TODO: set reactions_info[reaction_name]['name']
else:
reactions_info[reaction_name]['reversible'] = reversible
reactions_info[reaction_name]['reactants'] = left_specie_names
@@ -345,4 +348,6 @@
reactions_info[reaction_name]['forward']
= 'f'+reaction_name
reactions_info[reaction_name]['reverse'] = None
+ reactions_info[reaction_name]['name'] = reaction_string
+
return matrix, species, reactions, species_info, reactions_info