Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.mypy_cache/ | ||
.pytest_cache/ | ||
baseIRI2016 | ||
testiri2016 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[metadata] | ||
name = pyiri2016 | ||
version = 1.5.0 | ||
author = | ||
Michael Hirsch, Ph.D. | ||
Ronald Ilma | ||
url = https://github.com/scivision/pyIRI2016 | ||
description = IRI2016 International Reference Ionosphere from Python | ||
keywords = | ||
thermosphere | ||
ionosphere | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Fortran | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Topic :: Scientific/Engineering :: Atmospheric Science | ||
license_file = LICENSE | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
|
||
[options] | ||
python_requires = >= 3.6 | ||
setup_requires = | ||
setuptools >= 38.6 | ||
pip >= 10 | ||
twine >= 1.11 | ||
include_package_data = True | ||
packages = find: | ||
install_requires = | ||
python-dateutil | ||
numpy | ||
xarray | ||
|
||
[options.extras_require] | ||
tests = | ||
pytest | ||
pytest-cov | ||
coveralls | ||
flake8 | ||
mypy | ||
plot = | ||
matplotlib | ||
seaborn | ||
scipy | ||
timeutil | ||
pyigrf12 | ||
cartopy | ||
pyapex | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
IRIaltitudeProfile = AltitudeProfile:main | ||
IRItimeProfile = TimeProfile:main | ||
IRIlatitudeProfile = LatitudeProfile:main | ||
|
||
[flake8] | ||
max-line-length = 132 | ||
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/ | ||
|
||
[coverage:run] | ||
cover_pylib = false | ||
omit = | ||
/home/travis/virtualenv/* | ||
*/site-packages/* | ||
*/bin/* | ||
|
||
[coverage:report] | ||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
RuntimeError | ||
NotImplementedError | ||
ImportError | ||
KeyError | ||
FileNotFoundError | ||
CalledProcessError | ||
logging.warning | ||
ValueError | ||
TypeError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python | ||
import pytest | ||
import subprocess | ||
from pathlib import Path | ||
|
||
root = Path(__file__).parents[1] | ||
|
||
|
||
def test_latitude(): | ||
subprocess.check_call(['IRIlatitudeProfile', '-148']) | ||
|
||
|
||
def test_time(): | ||
subprocess.check_call(['IRItimeProfile', '65', '-148']) | ||
|
||
|
||
def test_alt(): | ||
subprocess.check_call(['IRIaltitudeProfile', '65', '-148']) | ||
|
||
|
||
if __name__ == '__main__': | ||
pytest.main() |