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
Tiago Peixoto
graph-tool
Commits
7b7ece48
Commit
7b7ece48
authored
Jan 25, 2011
by
Tiago Peixoto
Browse files
Fix simple compatilibity bug with older versions of numpy (~1.3)
parent
0982ad40
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/core.py
View file @
7b7ece48
...
...
@@ -225,7 +225,8 @@ class PropertyArray(numpy.ndarray):
'std'
,
'sum'
,
'swapaxes'
,
'take'
,
'tofile'
,
'tolist'
,
'tostring'
,
'trace'
,
'transpose'
,
'var'
,
'view'
,
'__getitem__'
]:
locals
()[
method
]
=
_wrap_method
(
method
)
if
hasattr
(
numpy
.
ndarray
,
method
):
locals
()[
method
]
=
_wrap_method
(
method
)
class
PropertyMap
(
object
):
...
...
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