|
42 | 42 | from lsst.obs.base.makeRawVisitInfoViaObsInfo import MakeRawVisitInfoViaObsInfo |
43 | 43 | from lsst.obs.lsst import Latiss |
44 | 44 | from lsst.obs.lsst.translators.latiss import AUXTEL_LOCATION |
| 45 | +from lsst.summit.utils.utils import getFilterSeeingCorrection # deprecated |
45 | 46 | from lsst.summit.utils.utils import ( |
46 | 47 | calcEclipticCoords, |
47 | 48 | computeCcdExposureId, |
48 | 49 | computeExposureId, |
49 | 50 | fluxesFromFootprints, |
50 | 51 | getAirmassSeeingCorrection, |
| 52 | + getBandpassSeeingCorrection, |
51 | 53 | getCurrentDayObs_datetime, |
52 | 54 | getCurrentDayObs_humanStr, |
53 | 55 | getCurrentDayObs_int, |
54 | 56 | getExpPositionOffset, |
55 | 57 | getFieldNameAndTileNumber, |
56 | | - getFilterSeeingCorrection, |
57 | 58 | getQuantiles, |
58 | 59 | quickSmooth, |
59 | 60 | ) |
@@ -189,7 +190,24 @@ def test_getAirmassSeeingCorrection(self): |
189 | 190 |
|
190 | 191 | def test_getFilterSeeingCorrection(self): |
191 | 192 | for filterName in ("SDSSg_65mm", "SDSSr_65mm", "SDSSi_65mm"): |
192 | | - correction = getFilterSeeingCorrection(filterName) |
| 193 | + with self.assertWarns(FutureWarning): |
| 194 | + correction = getFilterSeeingCorrection(filterName) |
| 195 | + self.assertGreater(correction, 0.5) |
| 196 | + self.assertLess(correction, 1.5) |
| 197 | + |
| 198 | + def test_getBandpassSeeingCorrection(self): |
| 199 | + for filterName in ( |
| 200 | + "SDSSg_65mm", |
| 201 | + "SDSSr_65mm", |
| 202 | + "SDSSi_65mm", |
| 203 | + "u_02", |
| 204 | + "g_01", |
| 205 | + "r_03", |
| 206 | + "i_06", |
| 207 | + "z_03", |
| 208 | + "y_04", |
| 209 | + ): |
| 210 | + correction = getBandpassSeeingCorrection(filterName) |
193 | 211 | self.assertGreater(correction, 0.5) |
194 | 212 | self.assertLess(correction, 1.5) |
195 | 213 |
|
|
0 commit comments