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
6108ab56
Commit
6108ab56
authored
Nov 11, 2017
by
Martin Reinecke
Browse files
tweaks
parent
1909f6ca
Pipeline
#21401
failed with stage
in 4 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/probing/newprober.py
deleted
100644 → 0
View file @
1909f6ca
def
probe_operation
(
soperation
,
domain
,
nprobes
,
random_type
,
dtype
):
for
i
in
range
(
nprobes
):
f
=
Field
.
from_random
(
random_type
=
random_type
,
domain
=
domain
,
dtype
=
dtype
)
tmp
=
operator
(
f
)
if
i
==
0
:
mean
=
[
0
]
*
len
(
tmp
)
var
=
[
0
]
*
len
(
tmp
)
for
i
in
range
(
len
(
tmp
)):
mean
[
i
]
+=
tmp
[
i
]
var
[
i
]
+=
tmp
[
i
]
**
2
for
i
in
range
(
len
(
tmp
)):
mean
[
i
]
*=
1.
/
nprobes
var
[
i
]
*=
1.
/
nprobes
var
[
i
]
-=
mean
[
i
]
**
2
return
mean
,
var
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