Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
36d059e4
Commit
36d059e4
authored
Feb 19, 2019
by
Martin Reinecke
Browse files
cosmetics
parent
fe00fb42
Pipeline
#43923
passed with stages
in 8 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/domains/lm_space.py
View file @
36d059e4
...
...
@@ -106,6 +106,13 @@ class LMSpace(StructuredDomain):
def
get_conv_kernel_from_func
(
self
,
func
):
"""Creates a convolution kernel defined by a function.
Parameters
----------
func: function
This function needs to take exactly one argument, which is
colatitude in radians, and return the kernel amplitude at that
colatitude.
Assumes the function to be radially symmetric,
e.g. only dependant on theta in radians"""
from
.gl_space
import
GLSpace
...
...
nifty5/operators/convolution_operators.py
View file @
36d059e4
...
...
@@ -32,12 +32,12 @@ def SphericalFuncConvolutionOperator(domain, func):
Parameters
----------
domain: DomainTuple
Domain of the operator. Must have exactly one entry, which is
of type `HPSpace` or `GLSpace`.
func:
function
This function needs to take exactly one argument, which is
colatitude in radians, and return the kernel amplitude at that
colatitude.
Domain of the operator. Must have exactly one entry, which is
of type `HPSpace` or `GLSpace`.
func: function
This function needs to take exactly one argument, which is
colatitude in radians, and return the kernel amplitude at that
colatitude.
"""
if
len
(
domain
)
!=
1
:
raise
ValueError
(
"need exactly one domain"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment