Skip to content

Commit

Permalink
Fix more astropy deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Mar 25, 2018
1 parent 4755022 commit fc32f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msumastro/scripts/run_astrometry.py
Expand Up @@ -92,7 +92,7 @@ def astrometry_for_directory(directories,
images = ImageFileCollection(currentDir,
keywords=['imagetyp', 'object',
'wcsaxes', 'ra', 'dec'])
summary = images.summary_info
summary = images.summary
if len(summary) == 0:
continue
logger.debug('\n %s', '\n'.join(summary.pformat()))
Expand Down Expand Up @@ -138,7 +138,7 @@ def astrometry_for_directory(directories,
do_not_scale_image_data=True) as f:
try:
del f[0].header['imageh'], f[0].header['imagew']
f.writeto(original_fname, clobber=True)
f.writeto(original_fname, overwrite=True)
except KeyError:
pass

Expand Down

0 comments on commit fc32f4b

Please sign in to comment.