-
Notifications
You must be signed in to change notification settings - Fork 18
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
16 changed files
with
186 additions
and
144 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude_dirs: | ||
- acstools/tests |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
See https://github.com/spacetelescope/acstools/releases |
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
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,31 +1,21 @@ | ||
"""The acstools package holds Python tasks useful for analyzing ACS data. | ||
These tasks include: | ||
Utility and library functions used by these tasks are also included in this | ||
module. | ||
""" | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
|
||
|
||
"""The acstools package holds Python tasks useful for analyzing ACS data.""" | ||
try: | ||
__version__ = get_distribution(__name__).version | ||
except DistributionNotFound: | ||
from .version import version as __version__ | ||
except ImportError: | ||
# package is not installed | ||
__version__ = 'unknown' | ||
__version__ = '' | ||
|
||
|
||
from . import acs_destripe | ||
from . import acs_destripe_plus | ||
from . import calacs | ||
from . import acsccd | ||
from . import acscte | ||
from . import acscteforwardmodel | ||
from . import acs2d | ||
from . import acsrej | ||
from . import acssum | ||
from . import acszpt | ||
from . import acsphotcte | ||
from . import satdet | ||
from . import utils_calib | ||
from . import acs_destripe # noqa | ||
from . import acs_destripe_plus # noqa | ||
from . import calacs # noqa | ||
from . import acsccd # noqa | ||
from . import acscte # noqa | ||
from . import acscteforwardmodel # noqa | ||
from . import acs2d # noqa | ||
from . import acsrej # noqa | ||
from . import acssum # noqa | ||
from . import acszpt # noqa | ||
from . import acsphotcte # noqa | ||
from . import satdet # noqa | ||
from . import utils_calib # noqa |
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,34 +1,31 @@ | ||
"""Custom ``pytest`` configurations.""" | ||
try: | ||
from pytest_astropy_header.display import (PYTEST_HEADER_MODULES, | ||
TESTED_VERSIONS) | ||
except ImportError: | ||
PYTEST_HEADER_MODULES = {} | ||
TESTED_VERSIONS = {} | ||
|
||
from astropy.tests.helper import enable_deprecations_as_exceptions | ||
try: | ||
from acstools.version import version | ||
except ImportError: | ||
version = 'unknown' | ||
|
||
# Turn deprecation warnings into exceptions. | ||
# Uncomment the following line to treat all DeprecationWarnings as | ||
# exceptions | ||
# NOTE: socks warning fixed by https://github.com/Anorov/PySocks/pull/106 | ||
# but not released yet. | ||
from astropy.tests.helper import enable_deprecations_as_exceptions | ||
enable_deprecations_as_exceptions(warnings_to_ignore_entire_module=['socks']) | ||
|
||
# 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['beautifulsoup4'] = 'bs4' | ||
PYTEST_HEADER_MODULES['requests'] = 'requests' | ||
PYTEST_HEADER_MODULES['stsci.tools'] = 'stsci.tools' | ||
PYTEST_HEADER_MODULES.pop('Pandas') | ||
PYTEST_HEADER_MODULES.pop('h5py') | ||
|
||
# For easy inspection on what dependencies were used in test. | ||
def pytest_report_header(config): | ||
import sys | ||
import warnings | ||
from astropy.utils.introspection import resolve_name | ||
|
||
s = "\nFull Python Version: \n{0}\n\n".format(sys.version) | ||
|
||
for module_name in ('numpy', 'astropy', 'scipy', 'matplotlib', | ||
'stsci.tools'): | ||
try: | ||
with warnings.catch_warnings(): | ||
warnings.simplefilter("ignore", DeprecationWarning) | ||
module = resolve_name(module_name) | ||
except ImportError: | ||
s += "{0}: not available\n".format(module_name) | ||
else: | ||
try: | ||
version = module.__version__ | ||
except AttributeError: | ||
version = 'unknown (no __version__ attribute)' | ||
s += "{0}: {1}\n".format(module_name, version) | ||
|
||
return s | ||
TESTED_VERSIONS['acstools'] = version |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build-system] | ||
requires = ["setuptools>=30.3.0", | ||
"setuptools_scm", | ||
"wheel"] | ||
build-backend = "setuptools.build_meta" |
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,26 +1,62 @@ | ||
[metadata] | ||
package_name = acstools | ||
description = Python Tools for ACS (Advanced Camera for Surveys) Data | ||
name = acstools | ||
description = Python Tools for HST ACS | ||
long_description = Python Tools for HST ACS (Advanced Camera for Surveys) Data | ||
long_description_content_type = text/plain | ||
keywords = astronomy, astrophysics, calibration | ||
author = Matt Davis, Warren Hack, Norman Grogin, Pey Lian Lim, Sara Ogaz, Leornado Ubeda, Mihai Cara, David Borncamp, Nathan Miles | ||
author_email = [email protected] | ||
license = BSD | ||
license_file = LICENSE.md | ||
url = https://github.com/spacetelescope/acstools | ||
edit_on_github = False | ||
github_project = spacetelescope/acstools | ||
classifier = | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Topic :: Scientific/Engineering :: Astronomy | ||
Topic :: Scientific/Engineering :: Physics | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
|
||
[options] | ||
packages = find: | ||
zip_safe = False | ||
setup_requires= | ||
setuptools_scm | ||
install_requires = | ||
numpy | ||
astropy>=2 | ||
beautifulsoup4 | ||
requests | ||
python_requires = >=3.5 | ||
|
||
[options.extras_require] | ||
all = | ||
matplotlib | ||
scipy | ||
scikit-image | ||
stsci.tools | ||
stsci.imagestats | ||
test = | ||
pytest | ||
pytest-astropy-header | ||
ci-watson | ||
docs = | ||
sphinx-automodapi | ||
|
||
[entry_points] | ||
acs_destripe = acstools.acs_destripe:main | ||
acs_destripe_plus = acstools.acs_destripe_plus:main | ||
|
||
[tool:pytest] | ||
minversion = 3.0 | ||
minversion = 4.0 | ||
testpaths = "acstools" "doc" | ||
norecursedirs = build doc/build | ||
astropy_header = true | ||
xfail_strict = true | ||
junit_family=xunit2 | ||
|
||
[flake8] | ||
|
@@ -33,4 +69,3 @@ junit_family=xunit2 | |
# E704: multiple statements on one line (def) | ||
# W504: line break after binary operator | ||
ignore = E221,E226,E262,E265,E501,E704,W504 | ||
exclude = __init__.py |
Oops, something went wrong.