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
e487ee0b
Commit
e487ee0b
authored
May 09, 2017
by
Pumpe, Daniel (dpumpe)
Browse files
update & fixes
parent
a6f6ef81
Pipeline
#12204
passed with stage
in 4 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/wiener_filter_unit.py
View file @
e487ee0b
...
...
@@ -83,10 +83,10 @@ if __name__ == "__main__":
a_s
=
sigma_s
**
2.
*
lambda_s
*
total_volume
# creation of spaces
x1
=
RGSpace
(
npix
,
dtype
=
np
.
float64
,
distances
=
total_volume
/
npix
,
x1
=
RGSpace
(
npix
,
distances
=
total_volume
/
npix
,
zerocenter
=
False
)
k1
=
RGRGTransformation
.
get_codomain
(
x1
)
p1
=
PowerSpace
(
harmonic_domain
=
k1
,
log
=
False
,
dtype
=
np
.
float64
)
p1
=
PowerSpace
(
harmonic_domain
=
k1
,
log
=
False
)
# creating Power Operator with given spectrum
spec
=
(
lambda
k
:
a_s
/
(
1
+
(
k
/
k_0
)
**
2
)
**
2
)
...
...
@@ -97,8 +97,8 @@ if __name__ == "__main__":
Fft_op
=
FFTOperator
(
domain
=
x1
,
target
=
k1
,
domain_dtype
=
np
.
float64
,
target_dtype
=
np
.
complex128
)
R_op
=
ResponseOperator
(
x1
,
sigma
=
length_convolution
,
exposure
=
exposure
)
R_op
=
ResponseOperator
(
x1
,
sigma
=
[
length_convolution
]
,
exposure
=
[
exposure
]
)
# drawing a random field
sk
=
p_field
.
power_synthesize
(
real_signal
=
True
,
mean
=
0.
)
...
...
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