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