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
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
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
35742979
Commit
35742979
authored
Nov 13, 2019
by
Philipp Frank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
demos/multi_amplitudes_consistency.py
demos/multi_amplitudes_consistency.py
+3
-3
nifty5/library/correlated_fields.py
nifty5/library/correlated_fields.py
+1
-1
No files found.
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
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