Project: datamanagement
Issue DM-4387: Skymap fails tests on testFindTractPatchList
When skymap is built and healpy is loaded, {{testFindTractPatchList}} fails with: {quote}====================================================================== FAIL: Test findTractPatchList ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/ctslater/lsstsw/build/skymap/tests/SkyMapTestCase.py", line 245, in testFindTractPatchList self.assertClosestTractPatchList(skyMap, [tractInfo.getCtrCoord()], tractId) File "/Users/ctslater/lsstsw/build/skymap/tests/SkyMapTestCase.py", line 284, in assertClosestTractPatchList tractPatchList = skyMap.findClosestTractPatchList(coordList) File "/Users/ctslater/lsstsw/build/skymap/python/lsst/skymap/baseSkyMap.py", line 146, in findClosestTractPatchList tractInfo = self.findTract(coord) File "/Users/ctslater/lsstsw/build/skymap/python/lsst/skymap/healpixSkyMap.py", line 97, in findTract index = healpy.ang2pix(self._nside, theta, phi, nest=self.config.nest) File "/Users/ctslater/lsstsw/stack/DarwinX86/healpy/1.8.1+12/lib/python/healpy-1.8.1-py2.7-macosx-10.5-x86_64.egg/healpy/pixelfunc.py", line 367, in ang2pix check_theta_valid(theta) File "/Users/ctslater/lsstsw/stack/DarwinX86/healpy/1.8.1+12/lib/python/healpy-1.8.1-py2.7-macosx-10.5-x86_64.egg/healpy/pixelfunc.py", line 110, in check_theta_valid assert (np.asarray(theta) >= 0).all() & (np.asarray(theta) <= np.pi + 1e-5).all(), "Theta is defined between 0 and pi" AssertionError: Theta is defined between 0 and pi{quote} This was missed during regular CI testing since healpy is not normally setup.
Story points: 1