Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
3cc45472
Commit
3cc45472
authored
Feb 25, 2017
by
Theo Steininger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed mean in create_power_operator in sugar.py
parent
145f44a9
Pipeline
#10482
passed with stages
in 23 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nifty/field.py
nifty/field.py
+1
-1
nifty/sugar.py
nifty/sugar.py
+1
-1
No files found.
nifty/field.py
View file @
3cc45472
...
...
@@ -90,7 +90,7 @@ class Field(Loggable, Versionable, object):
elif
isinstance
(
val
,
Field
):
distribution_strategy
=
val
.
distribution_strategy
else
:
self
.
logger
.
debug
(
"
Datamodel
set to default!"
)
self
.
logger
.
debug
(
"
distribution_strategy
set to default!"
)
distribution_strategy
=
gc
[
'default_distribution_strategy'
]
elif
distribution_strategy
not
in
DISTRIBUTION_STRATEGIES
[
'global'
]:
raise
ValueError
(
...
...
nifty/sugar.py
View file @
3cc45472
...
...
@@ -20,7 +20,7 @@ def create_power_operator(domain, power_spectrum, distribution_strategy='not'):
val
=
power_spectrum
,
distribution_strategy
=
distribution_strategy
)
f
=
fp
.
power_synthesize
(
std
=
0
)
f
=
fp
.
power_synthesize
(
mean
=
1
,
std
=
0
)
power_operator
=
DiagonalOperator
(
domain
,
diagonal
=
f
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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