Skip to content

Commit

Permalink
Merge pull request #248 from lsst/tickets/DM-32138
Browse files Browse the repository at this point in the history
DM-32138: Remove exposureId from VisitInfo
  • Loading branch information
parejkoj committed Jul 6, 2023
2 parents 4cb1d8a + 625a9df commit a8547c2
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tests/test_jointcal.py
Expand Up @@ -448,11 +448,9 @@ def testPointsRA0(self):
wcs1, wcs2 = make_fake_wcs()

# Put the visit boresights at the WCS origin, for consistency
visitInfo1 = lsst.afw.image.VisitInfo(exposureId=30577512,
date=DateTime(date=65321.1),
visitInfo1 = lsst.afw.image.VisitInfo(date=DateTime(date=65321.1),
boresightRaDec=wcs1.getSkyOrigin())
visitInfo2 = lsst.afw.image.VisitInfo(exposureId=30621144,
date=DateTime(date=65322.1),
visitInfo2 = lsst.afw.image.VisitInfo(date=DateTime(date=65322.1),
boresightRaDec=wcs1.getSkyOrigin())

struct = lsst.jointcal.testUtils.createTwoFakeCcdImages(fakeWcses=[wcs1, wcs2],
Expand All @@ -467,17 +465,13 @@ def test_compute_proper_motion_epoch(self):
mjds = np.array((65432.1, 66666.0, 55555.0, 44322.2))

wcs1, wcs2 = make_fake_wcs()
visitInfo1 = lsst.afw.image.VisitInfo(exposureId=30577512,
date=DateTime(date=mjds[0]),
visitInfo1 = lsst.afw.image.VisitInfo(date=DateTime(date=mjds[0]),
boresightRaDec=wcs1.getSkyOrigin())
visitInfo2 = lsst.afw.image.VisitInfo(exposureId=30621144,
date=DateTime(date=mjds[1]),
visitInfo2 = lsst.afw.image.VisitInfo(date=DateTime(date=mjds[1]),
boresightRaDec=wcs2.getSkyOrigin())
visitInfo3 = lsst.afw.image.VisitInfo(exposureId=30577513,
date=DateTime(date=mjds[2]),
visitInfo3 = lsst.afw.image.VisitInfo(date=DateTime(date=mjds[2]),
boresightRaDec=wcs1.getSkyOrigin())
visitInfo4 = lsst.afw.image.VisitInfo(exposureId=30621145,
date=DateTime(date=mjds[3]),
visitInfo4 = lsst.afw.image.VisitInfo(date=DateTime(date=mjds[3]),
boresightRaDec=wcs2.getSkyOrigin())

struct1 = lsst.jointcal.testUtils.createTwoFakeCcdImages(fakeWcses=[wcs1, wcs2],
Expand Down

0 comments on commit a8547c2

Please sign in to comment.