Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
74e620f8
Commit
74e620f8
authored
May 17, 2021
by
Gordian Edenhofer
Browse files
getting_started_density.py: Fix zero-mode kwarg
parent
0eff4f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_density.py
View file @
74e620f8
...
...
@@ -44,7 +44,7 @@ def density_estimator(domain, pad=1.0, cf_fluctuations=None, cf_azm_uniform=None
if
cf_fluctuations
is
None
:
cf_fluctuations
=
cf_fluctuations_sane_default
if
cf_azm_uniform
is
None
:
cf_azm_uni
=
cf_azm_uniform_sane_default
cf_azm_uni
form
=
cf_azm_uniform_sane_default
domain_padded
=
[]
for
d_scl
,
d
in
zip
(
dom_scaling
,
domain
):
...
...
@@ -66,7 +66,7 @@ def density_estimator(domain, pad=1.0, cf_fluctuations=None, cf_azm_uniform=None
cf_fl
=
cf_fluctuations
cfmaker
.
add_fluctuations_matern
(
d
,
**
cf_fl
,
prefix
=
f
"ax
{
i
}
"
)
scalar_domain
=
ift
.
DomainTuple
.
scalar_domain
()
uniform
=
ift
.
UniformOperator
(
scalar_domain
,
*
cf_azm_uni
)
uniform
=
ift
.
UniformOperator
(
scalar_domain
,
*
cf_azm_uni
form
)
azm
=
uniform
.
ducktape
(
"zeromode"
)
cfmaker
.
set_amplitude_total_offset
(
azm_offset_mean
,
azm
)
correlated_field
=
cfmaker
.
finalize
(
0
).
clip
(
-
10.
,
10.
)
...
...
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