Commit c561b6fe authored by Philipp Arras's avatar Philipp Arras
Browse files

Check type of space in Symmetrizing operator

parent d88ed387
......@@ -17,16 +17,19 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from __future__ import absolute_import, division, print_function
from .. import dobj
from ..compat import *
from ..domain_tuple import DomainTuple
from import RGSpace
from ..field import Field
from .endomorphic_operator import EndomorphicOperator
from .. import dobj
# MR FIXME: we should make sure that the domain is a harmonic RGSpace, correct?
class SymmetrizingOperator(EndomorphicOperator):
def __init__(self, domain):
if not (isinstance(domain, RGSpace) and domain.harmonic):
raise TypeError
self._domain = DomainTuple.make(domain)
self._ndim = len(self.domain.shape)
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