Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MNT: Remove _astropy_init.py, replace deprecated np.float #311

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/synphot/observation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ below::
... os.path.join('data', 'hst_acs_hrc_f555w.fits'),
... package='synphot.tests')
>>> bp = SpectralElement.from_file(filename)
>>> binset = np.arange(1000, 11001, dtype=np.float)
>>> binset = np.arange(1000, 11001, dtype=float)
>>> obs = Observation(sp, bp, binset=binset)

It has these main general components:
Expand Down
18 changes: 13 additions & 5 deletions synphot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"""
This is an Astropy affiliated package.
"""
import os
from astropy.tests.runner import TestRunner

# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init import * # noqa
# ----------------------------------------------------------------------------
try:
from .version import version as __version__
except ImportError:
__version__ = ''

# Create the test function for self test
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))

# SYNPHOT UI
from .config import conf # noqa
Expand All @@ -17,3 +21,7 @@
from .reddening import * # noqa
from .thermal import * # noqa
from .spectrum import SourceSpectrum, SpectralElement, BaseUnitlessSpectrum # noqa

# Clean-up namespace
del os
del TestRunner
14 changes: 0 additions & 14 deletions synphot/_astropy_init.py

This file was deleted.