Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
METRo projects
metro
Commits
012170d6
Commit
012170d6
authored
Mar 14, 2008
by
Miguel Tremblay
Browse files
Hungarian notation update: na (numarray) -> np (numpy)
parent
85aeda22
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/toolbox/metro_xml.py
View file @
012170d6
...
...
@@ -362,7 +362,7 @@ def create_node_tree_from_dict( domDoc, nodeParent, lDefs, dData ):
def
create_node_tree_from_matrix
(
domDoc
,
nodeParent
,
sPrediction_xpath
,
lDefs
,
metro_data_object
,
n
a
Matrix
):
lDefs
,
metro_data_object
,
n
p
Matrix
):
"""
Each prediction will be contained in a node that will have the name
given by sPrediction_xpath.
...
...
@@ -375,7 +375,7 @@ def create_node_tree_from_matrix( domDoc, nodeParent, sPrediction_xpath,
dData_type
=
metro_util
.
join_dictionaries
(
dStandard_data_type
,
dExtended_data_type
)
for
n
a
Data
in
n
a
Matrix
:
for
n
p
Data
in
n
p
Matrix
:
# If needed, creation of a node to contain the prediction
if
sPrediction_xpath
!=
None
and
sPrediction_xpath
!=
""
:
...
...
@@ -410,8 +410,8 @@ def create_node_tree_from_matrix( domDoc, nodeParent, sPrediction_xpath,
sCode
=
"import "
+
sFunction_module
exec
sCode
# Extraction of the data from the
numarray
val
=
n
a
Data
[
metro_data_object
.
index_of_matrix_col
(
sTag
)]
# Extraction of the data from the
matrix
val
=
n
p
Data
[
metro_data_object
.
index_of_matrix_col
(
sTag
)]
if
dData_type
[
sData_type_name
].
has_key
(
'CHILD'
):
# Construction of instruction doing the function call that will
...
...
Write
Preview
Supports
Markdown
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