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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
30f0c275
There was a problem fetching the pipeline summary.
Commit
30f0c275
authored
8 years ago
by
Theo Steininger
Browse files
Options
Downloads
Patches
Plain Diff
Fixed indentation in in sugar.py
parent
2580647e
No related branches found
No related tags found
4 merge requests
!141
Master
,
!137
Master
,
!136
Master
,
!135
added documentation to create_power_operator and Field::synthesize/analyze_power…
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nifty/sugar.py
+24
-24
24 additions, 24 deletions
nifty/sugar.py
with
24 additions
and
24 deletions
nifty/sugar.py
+
24
−
24
View file @
30f0c275
...
...
@@ -26,30 +26,30 @@ __all__ = ['create_power_operator']
def
create_power_operator
(
domain
,
power_spectrum
,
dtype
=
None
,
distribution_strategy
=
'
not
'
):
"""
Creates a diagonal operator with a certain power spectrum.
Constructs a diagonal operator that lives over the specified domain, or
its harmonic domain in case it is not harmonic.
Parameters
----------
domain : DomainObject
Domain over which the power operator shall live. If this is not a
harmonic domain, it will return an operator for its harmonic domain
instead.
power_spectrum : {array-like, method}
An array-like object, or a method that implements the square root
of a power spectrum as a function of k.
dtype : type, *optional*
dtype that the field holding the power spectrum shall use
{default : None}
if dtype == None: passes this on to constructor of Field
distribution_strategy : string, *optional*
Distributed strategy to be used by the underlying d2o objects.
{default :
'
not
'
}
Returns
-------
DiagonalOperator : An operator that lives that implements the given power
spectrum.
"""
"""
Creates a diagonal operator with a certain power spectrum.
Constructs a diagonal operator that lives over the specified domain, or
its harmonic domain in case it is not harmonic.
Parameters
----------
domain : DomainObject
Domain over which the power operator shall live. If this is not a
harmonic domain, it will return an operator for its harmonic domain
instead.
power_spectrum : {array-like, method}
An array-like object, or a method that implements the square root
of a power spectrum as a function of k.
dtype : type, *optional*
dtype that the field holding the power spectrum shall use
{default : None}
if dtype == None: passes this on to constructor of Field
distribution_strategy : string, *optional*
Distributed strategy to be used by the underlying d2o objects.
{default :
'
not
'
}
Returns
-------
DiagonalOperator : An operator that lives that implements the given power
spectrum.
"""
if
not
domain
.
harmonic
:
fft
=
FFTOperator
(
domain
)
domain
=
fft
.
target
[
0
]
...
...
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
register
or
sign in
to comment