Skip to content

Commit

Permalink
fixing for astropy dev breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
Clara Brasseur committed Nov 15, 2019
1 parent 54f1b8a commit a42c12b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions astrocut/cube_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

from itertools import product

try:
from astropy.wcs.utils import fit_wcs_from_points
except ImportError: # astropy version does not have the function
from .utils.wcs_fitting import fit_wcs_from_points
# Note: This is a local version of an astropy function available as of
# astropy 4.0, however the astropy call signature is different, so the
# local code must be changed before astropy can used if available.
from .utils.wcs_fitting import fit_wcs_from_points

from time import time

Expand Down
6 changes: 3 additions & 3 deletions docs/astrocut/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ aligned and have the same pixel scale, no checking is done.
>>> cutout_hdulist = fits.open(cutout_file)
>>> cutout_hdulist.info()
Filename: cutout_150.094500_2.386810_200x300_astrocut.fits
Filename: ./cutout_150.094500_2.386810_200x300_astrocut.fits
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 11 ()
1 CUTOUT 1 ImageHDU 44 (200, 300) float32
Expand Down Expand Up @@ -191,7 +191,7 @@ aligned and have the same pixel scale, no checking is done.
>>> print(png_files[0])
./hlsp_candels_hst_acs_cos-tot-sect23_f606w_v1.0_drz_150.094500_2.386810_200x300_astrocut.png
>>> Image.open(png_files[1])
>>> Image.open(png_files[1]) #doctest: +SKIP
.. image:: imgs/png_ex_cutout.png

Expand All @@ -215,7 +215,7 @@ treated as the R, G, and B channels respectively.
>>> print(color_image)
./cutout_189.515220_62.286522_200x300_astrocut.jpg
>>> Image.open(color_image)
>>> Image.open(color_image) #doctest: +SKIP
.. image:: imgs/color_ex_cutout.png

Expand Down

0 comments on commit a42c12b

Please sign in to comment.