Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
c561b6fe
Commit
c561b6fe
authored
Jul 10, 2018
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Check type of space in Symmetrizing operator
parent
d88ed387
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
nifty5/operators/symmetrizing_operator.py
+5
-2
5 additions, 2 deletions
nifty5/operators/symmetrizing_operator.py
with
5 additions
and
2 deletions
nifty5/operators/symmetrizing_operator.py
+
5
−
2
View file @
c561b6fe
...
@@ -17,16 +17,19 @@
...
@@ -17,16 +17,19 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
# and financially supported by the Studienstiftung des deutschen Volkes.
from
__future__
import
absolute_import
,
division
,
print_function
from
__future__
import
absolute_import
,
division
,
print_function
from
..
import
dobj
from
..compat
import
*
from
..compat
import
*
from
..domain_tuple
import
DomainTuple
from
..domain_tuple
import
DomainTuple
from
..domains.rg_space
import
RGSpace
from
..field
import
Field
from
..field
import
Field
from
.endomorphic_operator
import
EndomorphicOperator
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
):
class
SymmetrizingOperator
(
EndomorphicOperator
):
def
__init__
(
self
,
domain
):
def
__init__
(
self
,
domain
):
if
not
(
isinstance
(
domain
,
RGSpace
)
and
domain
.
harmonic
):
raise
TypeError
self
.
_domain
=
DomainTuple
.
make
(
domain
)
self
.
_domain
=
DomainTuple
.
make
(
domain
)
self
.
_ndim
=
len
(
self
.
domain
.
shape
)
self
.
_ndim
=
len
(
self
.
domain
.
shape
)
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment