Commit d8b165882ba15efc0f0264263c2d0ff8ebba3ae7
1 parent
35a99ac7
Exists in
master
Comply with PEP.
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
flaskr/db_scaling_laws.py
... | ... | @@ -33,26 +33,26 @@ def db_direct_emission(method, dist_min, x): |
33 | 33 | if method == "ICAO": |
34 | 34 | if x < 1000.: |
35 | 35 | return 23.339 + 0.10108 * x |
36 | - if 1000. <= x < 4000.: | |
36 | + elif 1000. <= x < 4000.: | |
37 | 37 | return 70.851 + 0.050821 * x |
38 | - if x > 4000.: | |
38 | + elif x > 4000.: | |
39 | 39 | return 121.08 + 0.035461 * x |
40 | 40 | |
41 | 41 | if method == "DEFRA": |
42 | 42 | if x < 500.: |
43 | 43 | return x * 0.13483 |
44 | - if 500. <= x < 3700.: | |
44 | + elif 500. <= x < 3700.: | |
45 | 45 | return x * 0.08233 |
46 | - if x >= 3700.: | |
46 | + elif x >= 3700.: | |
47 | 47 | return x * 0.5 * (0.0792 + 0.073195) |
48 | 48 | |
49 | 49 | if method == "ATMOSFAIR": |
50 | 50 | x += 50. |
51 | 51 | if x < 1000.: |
52 | 52 | return 25.922 + 0.079107 * x |
53 | - if 1000. <= x < 4000.: | |
53 | + elif 1000. <= x < 4000.: | |
54 | 54 | return 35.041 + 0.066183 * x |
55 | - if x > 4000.: | |
55 | + elif x > 4000.: | |
56 | 56 | return (-80.835) + 0.095998 * x |
57 | 57 | |
58 | 58 | if method == "ADEME": |
... | ... |