Commit 1c4d7918 authored by theos's avatar theos
Browse files

Updated SmoothOperator to new EndomorphicOperator structure.

parent ce37ce7c
......@@ -6,12 +6,14 @@ from nifty import RGSpace, LMSpace
from nifty.operators.endomorphic_operator import EndomorphicOperator
from nifty.operators.fft_operator import FFTOperator
class SmoothOperator(EndomorphicOperator):
# ---Overwritten properties and methods---
def __init__(self, domain=(), field_type=(), sigma=None):
super(SmoothOperator, self).__init__(domain=domain,
self._domain = self._parse_domain(domain)
self._field_type = self._parse_field_type(field_type)
if len(self.domain) != 1:
raise ValueError(
......@@ -35,6 +37,14 @@ class SmoothOperator(EndomorphicOperator):
return self._smooth_helper(x, spaces, types)
# ---Mandatory properties and methods---
def domain(self):
return self._domain
def field_type(self):
return self._field_type
def implemented(self):
return True
Supports Markdown
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