Commit fab21926 authored by Gordian Edenhofer's avatar Gordian Edenhofer
Browse files

correlated_fields_simple.py: Simplify constant zm

parent 0408c142
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment