Commit 4e623229 authored by Theo Steininger's avatar Theo Steininger
Browse files

Fixed module keyword in Transformation.

parent 0a0ddfcc
......@@ -17,7 +17,8 @@ class GLLMTransformation(SlicingTransformation):
raise ImportError(
"The module libsharp is needed but not available.")
super(GLLMTransformation, self).__init__(domain, codomain, module)
super(GLLMTransformation, self).__init__(domain, codomain,
module=module)
# ---Mandatory properties and methods---
......
......@@ -18,7 +18,8 @@ class HPLMTransformation(SlicingTransformation):
raise ImportError(
"The module healpy is needed but not available")
super(HPLMTransformation, self).__init__(domain, codomain, module)
super(HPLMTransformation, self).__init__(domain, codomain,
module=module)
# ---Mandatory properties and methods---
......
......@@ -17,7 +17,8 @@ class LMGLTransformation(SlicingTransformation):
raise ImportError(
"The module libsharp is needed but not available.")
super(LMGLTransformation, self).__init__(domain, codomain, module)
super(LMGLTransformation, self).__init__(domain, codomain,
module=module)
# ---Mandatory properties and methods---
......
......@@ -16,7 +16,8 @@ class LMHPTransformation(SlicingTransformation):
raise ImportError(
"The module libsharp is needed but not available.")
super(LMHPTransformation, self).__init__(domain, codomain, module)
super(LMHPTransformation, self).__init__(domain, codomain,
module=module)
# ---Mandatory properties and methods---
......
......@@ -7,7 +7,8 @@ from nifty import RGSpace, nifty_configuration
class RGRGTransformation(Transformation):
def __init__(self, domain, codomain=None, module=None):
super(RGRGTransformation, self).__init__(domain, codomain)
super(RGRGTransformation, self).__init__(domain, codomain,
module=module)
if module is None:
if nifty_configuration['fft_module'] == 'pyfftw':
......
......@@ -11,7 +11,7 @@ class Transformation(Loggable, object):
"""
__metaclass__ = abc.ABCMeta
def __init__(self, domain, codomain, module):
def __init__(self, domain, codomain, module=None):
if codomain is None:
self.domain = domain
self.codomain = self.get_codomain(domain)
......
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