Commit 6564052a authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] Quick fix for borderline typos even in Python2

parent c4fe5c6a
......@@ -41,9 +41,11 @@
"""
Guarded transition interpretation of PID data
"""
from __future__ import print_function
from lxml import etree
from cadbiom.models.guard_transitions.chart_model import ChartModel, ChartModelException
from lxml import etree
class MEvent(object):
"""
......@@ -177,13 +179,13 @@ class PidXmlParser:
self.location_dict = dict()
self.make_dict() # build dict_id and dict_name
dict_mev = self.make_mev_dict() # build a temporary dictionary
print "\n\n\nNB INTERACTIONS: "+str(self.int_cpt)
print "\n\n\nNB MOLECULES: "+str(self.mol_cpt)
print("\n\n\nNB INTERACTIONS:", self.int_cpt)
print("\n\n\nNB MOLECULES:", self.mol_cpt)
cpt = 0
for key in self.location_dict.keys() :
cpt += self.location_dict[key]
print key,'\t',self.location_dict[key]
print cpt
print(key,'\t', self.location_dict[key])
print(cpt)
# for k in dict_mev.keys():
# print dict_mev[k]
for kmev in dict_mev:
......@@ -248,7 +250,7 @@ class PidXmlParser:
"""
id_list = []
int_list = self.page.find('Model/InteractionList')
print len(int_list)
print(len(int_list))
mev_dict = dict()
for inter in int_list:
source = inter.find('Source')
......@@ -546,7 +548,7 @@ class PidXmlParser:
elif node_type == 'trap':
node = self.top.add_trap_node(xloc, yloc, name)
else :
print 'node type error'
print('node type error')
self.node_count += 1
self.dict_node[node_name] = node
self.coord_inc()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment