Skip to content

Commit 809fdfb

Browse files
authored
Merge pull request #1927 from cds-astro/fix_imshow_hips2fits
hips2fits remove imshow calls from remote tests
2 parents a3379c0 + 0d83917 commit 809fdfb

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

astroquery/hips2fits/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def query_with_wcs(self, hips, wcs, format="fits", min_cut=0.5, max_cut=99.5, st
7171
See the list of valid HiPS ids hosted by the CDS `here <http://aladin.unistra.fr/hips/list>`_.
7272
wcs : `~astropy.wcs.WCS`
7373
An astropy WCS defining the astrometry you wish.
74-
Alternatively, you can pass lon, lat, fov, coordsys keywords (if so, please use the
75-
:meth:`~astroquery.hips2fits.hips2fitsClass.query_with_user_defined_wcs` method).
74+
Alternatively, you can pass lon, lat, fov, coordsys keywords.
7675
format : str, optional
7776
Format of the output image.
7877
Allowed values are fits (default), jpg and png

astroquery/hips2fits/tests/test_hips2fits_remote.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def test_query_jpg_no_wcs(self):
7676
cmap=Colormap('viridis'),
7777
)
7878

79-
import matplotlib.cm as cm
80-
import matplotlib.pyplot as plt
79+
# import matplotlib.cm as cm
80+
# import matplotlib.pyplot as plt
8181

82-
im = plt.imshow(result)
83-
plt.show(im)
82+
# im = plt.imshow(result)
83+
# plt.show(im)
8484

8585
# We must get a numpy array with 3 dimensions, and the last one should be of size 3 (RGB)
8686
assert isinstance(result, np.ndarray) and result.shape[2] == 3

docs/hips2fits/hips2fits.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Query the `CDS hips2fits service <http://alasky.u-strasbg.fr/hips-image-services
1313

1414
The `CDS hips2fits service <http://alasky.u-strasbg.fr/hips-image-services/hips2fits>`_ offers a way
1515
to extract FITS images from HiPS sky maps. HiPS is an IVOA standard that combines individual images in
16-
order to produce a progressive hierarchical sky map describing the whole survey. Please refer to the
16+
order to produce a progressive hierarchical sky map describing the whole survey. Please refer to the
1717
`IVOA paper <http://www.ivoa.net/documents/HiPS/20170519/REC-HIPS-1.0-20170519.pdf>`_ for more info.
1818

1919
Given an astropy user-defined WCS with a HiPS name,
@@ -35,7 +35,7 @@ Examples
3535
========
3636

3737
With a user defined astropy WCS
38-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
-------------------------------
3939

4040
.. code-block:: python
4141
@@ -75,7 +75,7 @@ With a user defined astropy WCS
7575
.. image:: ./query_wcs.png
7676

7777
Without WCS
78-
~~~~~~~~~~~
78+
-----------
7979

8080
>>> from astroquery.hips2fits import hips2fits
8181
>>> import matplotlib.pyplot as plt
@@ -110,4 +110,3 @@ Reference/API
110110

111111

112112
.. _hips2fits: http://alasky.u-strasbg.fr/hips-image-services/hips2fits
113-

0 commit comments

Comments
 (0)