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
ift
NIFTy
Commits
35742979
Commit
35742979
authored
Nov 13, 2019
by
Philipp Frank
Browse files
fixup
parent
9dfa053b
Pipeline
#63597
passed with stages
in 6 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/multi_amplitudes_consistency.py
View file @
35742979
...
...
@@ -9,7 +9,7 @@ def testAmplitudesConsistency(seed, sspace):
intergated_fluct_std0
=
.
003
intergated_fluct_std1
=
0.1
nsam
=
100
0
nsam
=
100
hspace
=
sspace
.
get_default_codomain
()
target0
=
ift
.
PowerSpace
(
hspace
)
...
...
@@ -97,7 +97,7 @@ def testAmplitudesConsistency(seed, sspace):
for
seed
in
[
1
,
42
]:
for
sp
in
[
ift
.
RGSpace
((
32
,
64
),
(
1.1
,
0.3
)),
ift
.
HPSpace
(
64
),
ift
.
GLSpace
(
64
)
ift
.
HPSpace
(
32
),
ift
.
GLSpace
(
32
)
]:
testAmplitudesConsistency
(
seed
,
sp
)
nifty5/library/correlated_fields.py
View file @
35742979
...
...
@@ -215,7 +215,7 @@ class _Amplitude(Operator):
vslope
=
from_global_data
(
target
,
_relative_log_k_lengths
(
target
))
foo
,
bar
=
2
*
(
np
.
zeros
(
target
.
shape
)
,)
foo
,
bar
=
[
np
.
zeros
(
target
.
shape
)
for
_
in
range
(
2
)]
bar
[
1
:]
=
foo
[
0
]
=
totvol
vol0
,
vol1
=
[
from_global_data
(
target
,
aa
)
for
aa
in
(
foo
,
bar
)]
# End prepare constant fields
...
...
Write
Preview
Supports
Markdown
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