Commit c1dc4df8 authored by ultimanet's avatar ultimanet
Browse files

Fixed two small bugs.

parent 21abacbc
......@@ -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):
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment