Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
fab21926
Commit
fab21926
authored
May 06, 2021
by
Gordian Edenhofer
Browse files
correlated_fields_simple.py: Simplify constant zm
parent
0408c142
Pipeline
#100994
passed with stages
in 12 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/library/correlated_fields_simple.py
View file @
fab21926
...
...
@@ -59,12 +59,10 @@ def SimpleCorrelatedField(
else
:
target
.
check_codomain
(
harmonic_partner
)
harmonic_partner
.
check_codomain
(
target
)
for
kk
in
[
offset_std
,
fluctuations
,
loglogavgslope
]
:
for
kk
in
(
fluctuations
,
loglogavgslope
)
:
if
len
(
kk
)
!=
2
:
raise
TypeError
if
not
(
offset_std
is
None
or
len
(
offset_std
)
==
2
):
raise
TypeError
for
kk
in
[
flexibility
,
asperity
]:
for
kk
in
(
offset_std
,
flexibility
,
asperity
):
if
not
(
kk
is
None
or
len
(
kk
)
==
2
):
raise
TypeError
if
flexibility
is
None
and
asperity
is
not
None
:
...
...
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