Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
6564052a
Commit
6564052a
authored
Dec 13, 2019
by
VIGNET Pierre
Browse files
[lib] Quick fix for borderline typos even in Python2
parent
c4fe5c6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py
View file @
6564052a
...
...
@@ -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\n
NB INTERACTIONS:
"
+
str
(
self
.
int_cpt
)
print
"
\n\n\n
NB MOLECULES:
"
+
str
(
self
.
mol_cpt
)
print
(
"
\n\n\n
NB INTERACTIONS:
"
,
self
.
int_cpt
)
print
(
"
\n\n\n
NB 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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment