Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
2427c35e
Commit
2427c35e
authored
Nov 06, 2019
by
Philipp Frank
Browse files
tests on sphere passed
parent
1041bffb
Changes
2
Hide whitespace changes
Inline
Side-by-side
demos/multi_amplitudes_consistency.py
View file @
2427c35e
...
...
@@ -6,7 +6,9 @@ offset_std = 40
intergated_fluct_std0
=
10.
intergated_fluct_std1
=
2.
sspace
=
ift
.
RGSpace
((
32
,
64
),(
1.1
,
0.3
))
#sspace = ift.RGSpace((32,64),(1.1,0.3))
sspace
=
ift
.
HPSpace
(
64
)
sspace
=
ift
.
GLSpace
(
64
)
hspace
=
sspace
.
get_default_codomain
()
target0
=
ift
.
PowerSpace
(
hspace
)
...
...
nifty5/library/correlated_fields.py
View file @
2427c35e
...
...
@@ -47,7 +47,6 @@ def _lognormal_moment_matching(mean, sig, key):
logmean
,
logsig
=
_lognormal_moments
(
mean
,
sig
)
return
_normal
(
logmean
,
logsig
,
key
).
exp
()
def
_normal
(
mean
,
sig
,
key
):
return
Adder
(
Field
.
scalar
(
mean
))
@
(
sig
*
ducktape
(
DomainTuple
.
scalar_domain
(),
None
,
key
))
...
...
@@ -125,7 +124,6 @@ class _Normalization(Operator):
self
.
_domain
=
self
.
_target
=
makeDomain
(
domain
)
hspace
=
self
.
_domain
[
0
].
harmonic_partner
pd
=
PowerDistributor
(
hspace
,
power_space
=
self
.
_domain
[
0
])
# TODO Does not work on sphere yet
cst
=
pd
.
adjoint
(
full
(
pd
.
target
,
1.
)).
to_global_data_rw
()
cst
[
0
]
=
0
self
.
_cst
=
from_global_data
(
self
.
_domain
,
cst
)
...
...
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