Commit 57fa4410 authored by theos's avatar theos
Browse files

Fixed a few file-endings and line-breaks.

parent 95d48149
......@@ -7,6 +7,7 @@ import nifty.nifty_utilities as utilities
hp = gdi.get('healpy')
class HPTransform(Transform):
"""
GLTransform wrapper for libsharp's transform functions
......@@ -60,4 +61,4 @@ class HPTransform(Transform):
else:
return_val = return_val.astype(self.codomain.dtype, copy=False)
return return_val
\ No newline at end of file
return return_val
......@@ -27,7 +27,7 @@ class Transformation(object):
))
if not np.all(np.array(domain.paradict['shape']) ==
np.array(codomain.paradict['shape'])):
np.array(codomain.paradict['shape'])):
return False
if domain.harmonic == codomain.harmonic:
......@@ -198,6 +198,7 @@ class HPLMTransformation(Transformation):
def transform(self, val, axes=None, **kwargs):
return self._transform.transform(val, axes, **kwargs)
class LMGLTransformation(Transformation):
def __init__(self, domain, codomain):
if Transformation.check_codomain(domain, codomain):
......@@ -213,6 +214,7 @@ class LMGLTransformation(Transformation):
def transform(self, val, axes=None, **kwargs):
return self._transform.transform(val, axes, **kwargs)
class LMHPTransformation(Transformation):
def __init__(self, domain, codomain):
if Transformation.check_codomain(domain, codomain):
......@@ -226,4 +228,4 @@ class LMHPTransformation(Transformation):
raise ValueError("ERROR: Incompatible codomain!")
def transform(self, val, axes=None, **kwargs):
return self._transform.transform(val, axes, **kwargs)
\ No newline at end of file
return self._transform.transform(val, axes, **kwargs)
......@@ -41,4 +41,4 @@ class TransformationFactory(object):
if key not in self.cache:
self.cache[key] = self._get_transform(domain, codomain, module)
return self.cache[key]
\ No newline at end of file
return self.cache[key]
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