Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
Style corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexS12 committed Jan 1, 2016
1 parent c38830d commit ad057d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/pyfme/environment/isa.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# coding: utf-8
"""ISA functions.
"""ISA functions. Implementation based on:
.. [1] U.S. Standard Atmosphere, 1976, U.S. Government Printing Office,
Washington, D.C., 1976
.. [2] https://en.wikipedia.org/wiki/U.S._Standard_Atmosphere
"""

from math import exp
Expand Down Expand Up @@ -29,6 +33,7 @@
p0_layers = (101325.0, 22632.1, 5474.89, 868.019, 110.906, 66.9389, 3.95642) # Pa
alpha_layers = (-0.0065, 0, 0.001, 0.0028, 0, -0.0028, -0.002) # K / m


def atm(h):
"""ISA 1976 Standard atmosphere temperature, pressure and density.
Expand Down
2 changes: 1 addition & 1 deletion src/pyfme/environment/tests/test_isa.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ def test_results_under_84km():
for ii, h_ in enumerate(h):
T, p, rho = atm(h_)
assert_almost_equal(T, expected_T[ii], decimal=3)
assert_almost_equal(rho, expected_rho[ii], decimal=4)
assert_almost_equal(rho, expected_rho[ii], decimal=4)

0 comments on commit ad057d3

Please sign in to comment.