Browse files

Make operator's shape property always return a tuple of two integers …

…or None.
  • Loading branch information...
1 parent 671ebf8 commit e7ee91e730aa3d4fd27fd7937e97f87004c42dc6 @pchanial committed Apr 20, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 pyoperators/core.py
View
5 pyoperators/core.py
@@ -528,10 +528,7 @@ def __call__(self, x, out=None):
@property
def shape(self):
- shape = (np.product(self.shapeout), np.product(self.shapein))
- if shape[0] is None or shape[1] is None:
- return None
- return shape
+ return (np.product(self.shapeout), np.product(self.shapein))
@staticmethod
def same_data(array1, array2):

0 comments on commit e7ee91e

Please sign in to comment.