Skip to content

Commit

Permalink
Drop Python 3.5 compatibility (use f-strings)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil committed Jun 30, 2017
1 parent 00e9dea commit c10b11d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hips/utils/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ def create(cls, skydir: SkyCoord, shape: tuple, coordsys: str = 'CEL',
w = WCS(naxis=2)

if coordsys == 'CEL':
w.wcs.ctype[0] = 'RA---{}'.format(projection)
w.wcs.ctype[1] = 'DEC--{}'.format(projection)
w.wcs.ctype[0] = f'RA---{projection}'
w.wcs.ctype[1] = f'DEC--{projection}'
w.wcs.crval[0] = skydir.icrs.ra.deg
w.wcs.crval[1] = skydir.icrs.dec.deg
elif coordsys == 'GAL':
w.wcs.ctype[0] = 'GLON-{}'.format(projection)
w.wcs.ctype[1] = 'GLAT-{}'.format(projection)
w.wcs.ctype[0] = f'GLON-{projection}'
w.wcs.ctype[1] = f'GLAT-{projection}'
w.wcs.crval[0] = skydir.galactic.l.deg
w.wcs.crval[1] = skydir.galactic.b.deg
else:
Expand Down

0 comments on commit c10b11d

Please sign in to comment.