Skip to content

Commit

Permalink
Test that exposure time and dark time are set
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulPrice committed Jan 16, 2017
1 parent f5d0813 commit 167c7ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def setUp(self):
self.rawSize = (2144, 4241)
self.ccdSize = (2048, 4176)
self.exptime = 30.0
self.darktime = self.exptime # No explicit darktime
dateBeg = DateTime(56598.26106374757, DateTime.MJD, DateTime.UTC)
dateAvgNSec = dateBeg.nsecs() + int(0.5e9*self.exptime)
self.dateAvg = DateTime(dateAvgNSec, DateTime.TAI)
Expand Down Expand Up @@ -135,6 +136,8 @@ def testRaw(self):
self.assertAlmostEqual(visitInfo.getBoresightAirmass(), self.boresightAirmass)
self.assertTrue(math.isnan(visitInfo.getBoresightRotAngle().asDegrees()))
self.assertEqual(visitInfo.getRotType(), self.rotType)
self.assertEqual(visitInfo.getExposureTime(), self.exptime)
self.assertEqual(visitInfo.getDarkTime(), self.darktime)
observatory = visitInfo.getObservatory()
self.assertAnglesNearlyEqual(observatory.getLongitude(), self.obs_longitude)
self.assertAnglesNearlyEqual(observatory.getLatitude(), self.obs_latitude)
Expand Down

0 comments on commit 167c7ef

Please sign in to comment.