Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Bump to require Astropy v1.3 #834

Merged
merged 1 commit into from Jan 8, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions .travis.yml
Expand Up @@ -26,13 +26,13 @@ env:
global:
- NUMPY_VERSION=stable
- ASTROPY_VERSION=stable
- CONDA_DEPENDENCIES='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes sherpa libgfortran regions reproject'
- CONDA_DEPENDENCIES_OSX='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes sherpa regions reproject'
- CONDA_DEPENDENCIES_WO_SHERPA='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes regions reproject'
- CONDA_DOCS_DEPENDENCIES='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes pygments aplpy sherpa libgfortran regions reproject'
- CONDA_DOCS_DEPENDENCIES_WO_SHERPA='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes pygments aplpy regions reproject'
- CONDA_DEPENDENCIES_NOTEBOOKS='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes aplpy sherpa libgfortran runipy regions reproject'
- CONDA_DEPENDENCIES_NOTEBOOKS_WO_SHERPA='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils wcsaxes aplpy libgfortran runipy regions reproject'
- CONDA_DEPENDENCIES='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils sherpa libgfortran regions reproject'
- CONDA_DEPENDENCIES_OSX='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils sherpa regions reproject'
- CONDA_DEPENDENCIES_WO_SHERPA='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils regions reproject'
- CONDA_DOCS_DEPENDENCIES='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils pygments aplpy sherpa libgfortran regions reproject'
- CONDA_DOCS_DEPENDENCIES_WO_SHERPA='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils pygments aplpy regions reproject'
- CONDA_DEPENDENCIES_NOTEBOOKS='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils aplpy sherpa libgfortran runipy regions reproject'
- CONDA_DEPENDENCIES_NOTEBOOKS_WO_SHERPA='Cython click scipy h5py matplotlib pyyaml scikit-image scikit-learn pandas naima photutils aplpy libgfortran runipy regions reproject'
- PIP_DEPENDENCIES='uncertainties'
- CONDA_CHANNELS='astropy sherpa'
- FETCH_GAMMAPY_EXTRA=true
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -18,6 +18,9 @@ Summary

For plans and progress for Gammapy 0.6, see https://github.com/gammapy/gammapy/milestones/0.6

- Requires Astropy 1.3 or later. (Almost everything will probably still work with older Astropy versions,
but we don't test against older versions.)

Contributors
++++++++++++

Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Expand Up @@ -75,7 +75,6 @@
intersphinx_mapping['skimage'] = ('http://scikit-image.org/docs/stable/', None)
intersphinx_mapping['sklearn'] = ('http://scikit-learn.org/stable/', None)
intersphinx_mapping['photutils'] = ('http://photutils.readthedocs.io/en/latest/', None)
intersphinx_mapping['wcsaxes'] = ('http://wcsaxes.readthedocs.io/en/latest/', None)
intersphinx_mapping['aplpy'] = ('http://aplpy.readthedocs.io/en/latest/', None)
intersphinx_mapping['naima'] = ('http://naima.readthedocs.io/en/latest/', None)
intersphinx_mapping['reproject'] = ('http://reproject.readthedocs.io/en/latest/', None)
Expand Down
2 changes: 0 additions & 2 deletions docs/environment.yml
Expand Up @@ -9,9 +9,7 @@ dependencies:
- scipy
- scikit-image
- matplotlib
- astropy-helpers
- astropy
- regions
- reproject
- wcsaxes
- aplpy
7 changes: 3 additions & 4 deletions docs/install.rst
Expand Up @@ -46,7 +46,7 @@ functionality available:

conda install \
scikit-image scikit-learn h5py pandas \
aplpy wcsaxes photutils reproject
aplpy photutils reproject

pip install iminuit

Expand Down Expand Up @@ -170,7 +170,7 @@ The following packages have to be installed with pip:
.. code-block:: bash

pip3 install --user \
gammapy naima photutils reproject wcsaxes gwcs astroplan \
gammapy naima photutils reproject gwcs astroplan \
iminuit emcee healpy

Sherpa currently doesn't work on Python 3.
Expand Down Expand Up @@ -213,7 +213,7 @@ Having multiple Python versions simultaneously works well, but is only really us
.. code-block:: bash

pip install --user \
gammapy naima photutils reproject wcsaxes gwcs astroplan \
gammapy naima photutils reproject gwcs astroplan \
iminuit


Expand Down Expand Up @@ -314,7 +314,6 @@ Currently optional dependencies that are being considered as core dependencies:
Allowed optional dependencies:

* `matplotlib`_ for plotting
* `wcsaxes`_ for sky image plotting (provides a low-level API)
* `aplpy`_ for sky image plotting (provides a high-level API)
* `pandas`_ CSV read / write; DataFrame
* `scikit-learn`_ for some data analysis tasks
Expand Down
1 change: 0 additions & 1 deletion docs/references.txt
Expand Up @@ -16,7 +16,6 @@
.. _photutils: http://photutils.readthedocs.io
.. _astroplan: http://astroplan.readthedocs.io
.. _gwcs: http://gwcs.readthedocs.io
.. _wcsaxes: https://github.com/astrofrog/wcsaxes
.. _iminuit: https://github.com/iminuit/iminuit
.. _probfit: https://github.com/iminuit/probfit
.. _h5py: http://www.h5py.org/
Expand Down
3 changes: 1 addition & 2 deletions gammapy-conda-install.sh
Expand Up @@ -46,11 +46,10 @@ conda install gammapy naima \
# Nice to have extras
conda install \
scikit-image scikit-learn h5py pandas \
aplpy wcsaxes photutils
aplpy photutils
# Disk space now: 747 MB

pip install reproject
pip install iminuit

# This will only work on Python 2:
conda install sherpa
3 changes: 0 additions & 3 deletions gammapy/conftest.py
Expand Up @@ -17,7 +17,6 @@
# Declare for which packages version numbers should be displayed
# when running the tests
PYTEST_HEADER_MODULES['cython'] = 'cython'
PYTEST_HEADER_MODULES['pandas'] = 'pandas'
PYTEST_HEADER_MODULES['skimage'] = 'skimage'
PYTEST_HEADER_MODULES['sklearn'] = 'sklearn'
PYTEST_HEADER_MODULES['uncertainties'] = 'uncertainties'
Expand All @@ -28,8 +27,6 @@
PYTEST_HEADER_MODULES['naima'] = 'naima'
PYTEST_HEADER_MODULES['reproject'] = 'reproject'
PYTEST_HEADER_MODULES['photutils'] = 'photutils'
PYTEST_HEADER_MODULES['gwcs'] = 'gwcs'
PYTEST_HEADER_MODULES['wcsaxes'] = 'wcsaxes'
PYTEST_HEADER_MODULES['aplpy'] = 'aplpy'
PYTEST_HEADER_MODULES['regions'] = 'regions'
PYTEST_HEADER_MODULES['astroplan'] = 'astroplan'
Expand Down
4 changes: 2 additions & 2 deletions gammapy/image/core.py
Expand Up @@ -840,7 +840,7 @@ def plot(self, ax=None, fig=None, add_cbar=False, **kwargs):

Parameters
----------
ax : `~astropy.wcsaxes.WCSAxes`, optional
ax : `~astropy.visualization.wcsaxes.WCSAxes`, optional
WCS axis object to plot on.
fig : `~matplotlib.figure.Figure`, optional
Figure
Expand All @@ -849,7 +849,7 @@ def plot(self, ax=None, fig=None, add_cbar=False, **kwargs):
-------
fig : `~matplotlib.figure.Figure`, optional
Figure
ax : `~astropy.wcsaxes.WCSAxes`, optional
ax : `~astropy.visualization.wcsaxes.WCSAxes`, optional
WCS axis object
cbar : ?
Colorbar object (if ``add_cbar=True`` was set)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -105,7 +105,7 @@
# To find out if everything works run the Gammapy tests.
install_requires=[
'numpy>=1.8',
'astropy>=1.2',
'astropy>=1.3',
'regions',
'click',
],
Expand All @@ -124,7 +124,6 @@
],
plotting=[
'matplotlib>=1.4',
'wcsaxes>=0.3',
'aplpy>=0.9',
],
gui=[
Expand All @@ -150,6 +149,7 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Astronomy',
'Development Status :: 3 - Alpha',
Expand Down