Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cadbiom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIGNET Pierre
cadbiom
Commits
6564052a
Commit
6564052a
authored
5 years ago
by
VIGNET Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[lib] Quick fix for borderline typos even in Python2
parent
c4fe5c6a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py
+9
-7
9 additions, 7 deletions
...iom/models/guard_transitions/translators/chart_xml_pid.py
with
9 additions
and
7 deletions
library/cadbiom/models/guard_transitions/translators/chart_xml_pid.py
+
9
−
7
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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment