Skip to content

Commit

Permalink
Update test case for create_from_dict classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
adl1995 committed Aug 2, 2017
1 parent 651a5ae commit b447864
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hips/utils/tests/test_wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ def test_create_from_dict(self):
coordsys='galactic', projection='AIT')
geometry = WCSGeometry.create_from_dict(params)

c = self.geometry.center_skycoord
c = geometry.center_skycoord
assert c.frame.name == 'galactic'
assert_allclose(c.l.deg, 184.55, atol=1e-2)
assert_allclose(c.b.deg, -5.78, atol=1e-2)
assert_allclose(self.geometry.wcs.wcs.crpix, [1000., 500.])
assert_allclose(self.geometry.wcs.wcs.cdelt, [-0.0015, 0.0015])

0 comments on commit b447864

Please sign in to comment.