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
12803f1c
Commit
12803f1c
authored
Jun 30, 2020
by
Philipp Arras
Browse files
Simplify
parent
edcfec7b
Pipeline
#77555
passed with stages
in 13 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/library/correlated_fields_simple.py
View file @
12803f1c
...
...
@@ -81,16 +81,15 @@ class SimpleCorrelatedField(Operator):
shift
[
0
]
=
_log_vol
(
pspace
)
**
2
/
12.
shift
=
makeField
(
dom
,
shift
)
if
asperity
is
None
:
asp
=
makeOp
(
shift
.
ptw
(
"sqrt"
))
a
=
a
+
_SlopeRemover
(
pspace
,
0
)
@
twolog
@
asp
@
(
xi
*
sig_flex
)
asp
=
makeOp
(
shift
.
ptw
(
"sqrt"
))
@
(
xi
*
sig_flex
)
else
:
asp
=
LognormalTransform
(
*
asperity
,
prefix
+
'asperity'
,
0
)
vasp
=
np
.
zeros
(
dom
.
shape
)
vasp
[
0
]
=
1
vasp
=
makeOp
(
makeField
(
dom
,
vasp
))
sig_asp
=
vasp
@
expander
@
asp
asp
=
(
Adder
(
shift
)
@
sig_asp
).
ptw
(
"sqrt"
)
a
=
a
+
_SlopeRemover
(
pspace
,
0
)
@
twolog
@
(
xi
*
sig_flex
*
asp
)
asp
=
xi
*
sig_flex
*
(
Adder
(
shift
)
@
sig_asp
).
ptw
(
"sqrt"
)
a
=
a
+
_SlopeRemover
(
pspace
,
0
)
@
twolog
@
asp
a
=
_Normalization
(
pspace
,
0
)
@
a
maskzm
=
np
.
ones
(
pspace
.
shape
)
maskzm
[
0
]
=
0
...
...
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