Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
c1dc4df8
Commit
c1dc4df8
authored
Feb 01, 2016
by
ultimanet
Browse files
Fixed two small bugs.
parent
21abacbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
dummys/MPI_dummy.py
View file @
c1dc4df8
...
...
@@ -136,6 +136,8 @@ class _comm_wrapper(object):
def
__init__
(
self
,
name
):
self
.
cache
=
None
self
.
name
=
name
self
.
size
=
1
self
.
rank
=
0
@
property
def
comm
(
self
):
...
...
nifty_core.py
View file @
c1dc4df8
...
...
@@ -262,7 +262,7 @@ class space(object):
return
not
self
.
__eq__
(
x
)
def
__len__
(
self
):
return
int
(
self
.
get_dim
(
split
=
False
))
return
int
(
self
.
get_dim
())
def
copy
(
self
):
return
space
(
para
=
self
.
para
,
...
...
@@ -292,7 +292,7 @@ class space(object):
raise
NotImplementedError
(
about
.
_errors
.
cstring
(
"ERROR: no generic instance method 'shape'."
))
def
get_dim
(
self
,
split
=
False
):
def
get_dim
(
self
):
"""
Computes the dimension of the space, i.e.\ the number of pixels.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment