[sympycore] r1209 committed - Added reaction string to reaction info.

1 view
Skip to first unread message

codesite...@google.com

unread,
May 25, 2011, 3:02:18 AM5/25/11
to sympycor...@googlegroups.com
Revision: 1209
Author: pearu.peterson
Date: Wed May 25 00:01:53 2011
Log: Added reaction string to reaction info.
http://code.google.com/p/sympycore/source/detail?r=1209

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

Reply all
Reply to author
Forward
0 new messages