Skip to content

Commit

Permalink
remove test that doesn't really check imsim-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed Dec 6, 2018
1 parent 425ba51 commit 8fff9c5
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/test_instcat_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,28 +112,6 @@ def test_metadata_from_file(self):
self.assertAlmostEqual(obs.mjd.TAI, metadata['mjd'], 7)
self.assertEqual(obs.bandpass, 'r')

# make sure that the relationship between Alt, Az and RA, Dec
# is correct

mjd = metadata['mjd'] - 16.5/86400.0
# the adjustment to mjd is because altitude is reckoned at the start of
# the observation, but mjd is reported at the middle of the observation

alt, az, pa = altAzPaFromRaDec(metadata['rightascension'],
metadata['declination'],
ObservationMetaData(mjd=mjd),
includeRefraction=False)
dd = angularSeparation(metadata['azimuth'], metadata['altitude'],
az, alt)

# This test is more lax than we want; there appears
# to be an instability in PALPY that causes the
# transformation from RA, Dec to Alt, Az to vary
# by a few 0.01 arcsec depending on the machine
# being run. We will make the tolerance on this
# test more stringent when that gets fixed.
self.assertLess(3600.0*dd, 1.)

def test_object_extraction_stars(self):
"""
Test that method to get GalSimCelestialObjects from
Expand Down

0 comments on commit 8fff9c5

Please sign in to comment.