Skip to content
GitLab
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
509da8d4
Commit
509da8d4
authored
May 17, 2020
by
Martin Reinecke
Browse files
typos
parent
765a6cc6
Pipeline
#75078
passed with stages
in 34 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/operator.py
View file @
509da8d4
...
...
@@ -128,7 +128,7 @@ class Operator(metaclass=NiftyMeta):
from
.contraction_operator
import
ContractionOperator
return
ContractionOperator
(
self
.
target
,
spaces
)(
self
)
def
inte
r
gate
(
self
,
spaces
=
None
):
def
integ
r
ate
(
self
,
spaces
=
None
):
from
.contraction_operator
import
IntegrationOperator
return
IntegrationOperator
(
self
.
target
,
spaces
)(
self
)
...
...
test/test_operators/test_correlated_fields.py
View file @
509da8d4
...
...
@@ -59,8 +59,8 @@ def testAmplitudesConsistency(rseed, sspace, Astds, offset_std_mean, N, zm_mean)
samples
=
[
ift
.
from_random
(
'normal'
,
op
.
domain
)
for
_
in
range
(
nsam
)]
tot_flm
,
_
=
stats
(
fa
.
total_fluctuation
,
samples
)
offset_amp_std
,
_
=
stats
(
fa
.
amplitude_total_offset
,
samples
)
inte
r
gated_fluct_std0
,
_
=
stats
(
fa
.
average_fluctuation
(
0
),
samples
)
inte
r
gated_fluct_std1
,
_
=
stats
(
fa
.
average_fluctuation
(
1
),
samples
)
integ
r
ated_fluct_std0
,
_
=
stats
(
fa
.
average_fluctuation
(
0
),
samples
)
integ
r
ated_fluct_std1
,
_
=
stats
(
fa
.
average_fluctuation
(
1
),
samples
)
slice_fluct_std0
,
_
=
stats
(
fa
.
slice_fluctuation
(
0
),
samples
)
slice_fluct_std1
,
_
=
stats
(
fa
.
slice_fluctuation
(
1
),
samples
)
...
...
@@ -74,8 +74,8 @@ def testAmplitudesConsistency(rseed, sspace, Astds, offset_std_mean, N, zm_mean)
sl_fluct_freq
=
fa
.
slice_fluctuation_realized
(
sams
,
1
)
assert_allclose
(
offset_amp_std
,
zm_std_mean
,
rtol
=
0.5
)
assert_allclose
(
inte
r
gated_fluct_std0
,
fluct_space
,
rtol
=
0.5
)
assert_allclose
(
inte
r
gated_fluct_std1
,
fluct_freq
,
rtol
=
0.5
)
assert_allclose
(
integ
r
ated_fluct_std0
,
fluct_space
,
rtol
=
0.5
)
assert_allclose
(
integ
r
ated_fluct_std1
,
fluct_freq
,
rtol
=
0.5
)
assert_allclose
(
tot_flm
,
fluct_total
,
rtol
=
0.5
)
assert_allclose
(
slice_fluct_std0
,
sl_fluct_space
,
rtol
=
0.5
)
assert_allclose
(
slice_fluct_std1
,
sl_fluct_freq
,
rtol
=
0.5
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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