-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from pllim/moar-setup-cfg
ENH: Modernize setup and test infrastructure
- Loading branch information
Showing
30 changed files
with
327 additions
and
312 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
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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,7 +1,27 @@ | ||
def pytest_report_header(config): | ||
"""Report dependency versions""" | ||
import numpy | ||
import astropy | ||
try: | ||
from pytest_astropy_header.display import (PYTEST_HEADER_MODULES, | ||
TESTED_VERSIONS) | ||
except ImportError: | ||
PYTEST_HEADER_MODULES = {} | ||
TESTED_VERSIONS = {} | ||
|
||
return 'numpy: {}\nastropy: {}'.format( | ||
numpy.__version__, astropy.__version__) | ||
try: | ||
from stsci.tools import __version__ as version | ||
except ImportError: | ||
version = 'unknown' | ||
|
||
# Uncomment the following line to treat all DeprecationWarnings as | ||
# exceptions | ||
from astropy.tests.helper import enable_deprecations_as_exceptions | ||
enable_deprecations_as_exceptions() | ||
|
||
# Uncomment and customize the following lines to add/remove entries | ||
# from the list of packages for which version numbers are displayed | ||
# when running the tests. | ||
PYTEST_HEADER_MODULES['Astropy'] = 'astropy' | ||
PYTEST_HEADER_MODULES.pop('Scipy', None) | ||
PYTEST_HEADER_MODULES.pop('Matplotlib', None) | ||
PYTEST_HEADER_MODULES.pop('Pandas', None) | ||
PYTEST_HEADER_MODULES.pop('h5py', None) | ||
|
||
TESTED_VERSIONS['stsci.tools'] = version |
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,30 +1,16 @@ | ||
********************** | ||
Data Analysis Routines | ||
********************** | ||
====================== | ||
|
||
These modules provide basic data analysis or data fitting functionality. | ||
|
||
linefit | ||
======= | ||
.. automodule:: stsci.tools.linefit | ||
:members: | ||
------- | ||
|
||
nmpfit | ||
====== | ||
.. automodule:: stsci.tools.nmpfit | ||
.. automodule:: stsci.tools.linefit | ||
:members: | ||
|
||
xyinterp | ||
======== | ||
.. automodule:: stsci.tools.xyinterp | ||
:members: | ||
-------- | ||
|
||
gfit | ||
==== | ||
.. automodule:: stsci.tools.gfit | ||
.. automodule:: stsci.tools.xyinterp | ||
:members: | ||
|
||
Image Combination Modules | ||
************************* | ||
|
||
The ``stsci.image.numcombine`` module serves as a limited replacement for | ||
IRAF's 'imcombine' task. |
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
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
******************** | ||
FITS/Image Utilities | ||
******************** | ||
These modules provide support for working with FITS images, WCS information, or conversion of images to FITS format. | ||
==================== | ||
|
||
These modules provide support for working with FITS images, WCS information, or conversion of images to FITS format. | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
stpyfits | ||
fitsdiff | ||
wcsutil | ||
convert | ||
asnutil | ||
|
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,8 +1,8 @@ | ||
******************** | ||
Image Access Modules | ||
******************** | ||
These modules all provide the capability to access sections of a FITS image | ||
using a scrolling buffer. | ||
|
||
==================== | ||
|
||
These modules all provide the capability to access sections of a FITS image | ||
using a scrolling buffer. | ||
|
||
.. automodule:: stsci.tools.iterfile | ||
:members: |
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
Oops, something went wrong.