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
06905658
Commit
06905658
authored
Nov 13, 2017
by
Martin Reinecke
Browse files
remove accidentally committed file
parent
78e029eb
Pipeline
#21496
passed with stage
in 4 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/probing/newprober.py
deleted
100644 → 0
View file @
78e029eb
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
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