From ad057d3e43b346ba02484e6351084bf0c3135aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= Date: Fri, 1 Jan 2016 20:14:03 +0100 Subject: [PATCH] Style corrections --- src/pyfme/environment/isa.py | 7 ++++++- src/pyfme/environment/tests/test_isa.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pyfme/environment/isa.py b/src/pyfme/environment/isa.py index 2f622cf..02c781e 100644 --- a/src/pyfme/environment/isa.py +++ b/src/pyfme/environment/isa.py @@ -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 @@ -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. diff --git a/src/pyfme/environment/tests/test_isa.py b/src/pyfme/environment/tests/test_isa.py index 5617a8c..532cd5c 100644 --- a/src/pyfme/environment/tests/test_isa.py +++ b/src/pyfme/environment/tests/test_isa.py @@ -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) \ No newline at end of file + assert_almost_equal(rho, expected_rho[ii], decimal=4)