diff --git a/library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py b/library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py index f077322034002a39e2aa8b539b35f42df684c8f0..e29c34ed064f800ae65aac00c3d1e9463ffe44a9 100644 --- a/library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py +++ b/library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py @@ -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()