summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-03-06 13:55:20 +0000
committerEdoardo Pasca <edo.paskino@gmail.com>2019-03-06 13:55:20 +0000
commit6984e890c19b2b1ee547bbf079c27564cff56887 (patch)
tree1dfcbc348769a19d2791ec77ee2d8b2dbba142ec /Wrappers/Python
parent989f32cd52caa597781b7cf1312e5ace28576f79 (diff)
downloadframework-6984e890c19b2b1ee547bbf079c27564cff56887.tar.gz
framework-6984e890c19b2b1ee547bbf079c27564cff56887.tar.bz2
framework-6984e890c19b2b1ee547bbf079c27564cff56887.tar.xz
framework-6984e890c19b2b1ee547bbf079c27564cff56887.zip
removed default before positional
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-xWrappers/Python/ccpi/framework/framework.py27
1 files changed, 9 insertions, 18 deletions
diff --git a/Wrappers/Python/ccpi/framework/framework.py b/Wrappers/Python/ccpi/framework/framework.py
index 23f18e6..d77db4a 100755
--- a/Wrappers/Python/ccpi/framework/framework.py
+++ b/Wrappers/Python/ccpi/framework/framework.py
@@ -678,28 +678,22 @@ class DataContainer(object):
raise ValueError (message(type(self), "incompatible class:" , pwop.__name__, type(out)))
def add(self, other, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_binary(numpy.add, other, out=out, *args, **kwargs)
+ return self.pixel_wise_binary(numpy.add, other, *args, **kwargs)
def subtract(self, other, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_binary(numpy.subtract, other, out=out, *args, **kwargs)
+ return self.pixel_wise_binary(numpy.subtract, other, *args, **kwargs)
def multiply(self, other, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_binary(numpy.multiply, other, out=out, *args, **kwargs)
+ return self.pixel_wise_binary(numpy.multiply, other, *args, **kwargs)
def divide(self, other, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_binary(numpy.divide, other, out=out, *args, **kwargs)
+ return self.pixel_wise_binary(numpy.divide, other, *args, **kwargs)
def power(self, other, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_binary(numpy.power, other, out=out, *args, **kwargs)
+ return self.pixel_wise_binary(numpy.power, other, *args, **kwargs)
def maximum(self, x2, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_binary(numpy.maximum, x2=x2, out=out, *args, **kwargs)
+ return self.pixel_wise_binary(numpy.maximum, x2=x2, *args, **kwargs)
## unary operations
def pixel_wise_unary(self, pwop, *args, **kwargs):
@@ -722,16 +716,13 @@ class DataContainer(object):
raise ValueError (message(type(self), "incompatible class:" , pwop.__name__, type(out)))
def abs(self, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_unary(numpy.abs, out=out, *args, **kwargs)
+ return self.pixel_wise_unary(numpy.abs, *args, **kwargs)
def sign(self, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_unary(numpy.sign , out=out, *args, **kwargs)
+ return self.pixel_wise_unary(numpy.sign, *args, **kwargs)
def sqrt(self, *args, **kwargs):
- out = kwargs.get('out', None)
- return self.pixel_wise_unary(numpy.sqrt, out=out, *args, **kwargs)
+ return self.pixel_wise_unary(numpy.sqrt, *args, **kwargs)
#def __abs__(self):
# operation = FM.OPERATION.ABS