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
a1ef4f79
Commit
a1ef4f79
authored
Mar 14, 2008
by
Miguel Tremblay
Browse files
Removed numarray from the import.
Removed function get_nodes_in_numarray.
parent
bf65fdc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/toolbox/metro_xml_libxml2.py
View file @
a1ef4f79
...
...
@@ -49,7 +49,6 @@ Date: Somewhere in the summer 2004
"""
import
libxml2
import
numarray
import
metro_logger
from
toolbox
import
metro_util
...
...
@@ -219,16 +218,6 @@ class Metro_xml_libxml2:
lNode
.
append
(
self
.
get_node_value
(
node
))
return
lNode
def
get_nodes_in_numarray
(
self
,
dom
,
sXPath
):
"""
Same as get_nodes_in_list but return a numarray
"""
lList
=
self
.
get_nodes_in_list
(
dom
,
sXPath
)
naResult
=
numarray
.
array
(
map
(
lambda
x
:
float
(
x
),
lList
))
return
naResult
def
set_prop
(
self
,
node
,
sName
,
value
):
"""
Set an attribute to a node.
...
...
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