Skip to content

Commit

Permalink
Merge pull request #949 from lsst/tickets/DM-44796
Browse files Browse the repository at this point in the history
DM-44796: Replace deprecated getInnerSkyPolygon() with getOuterSkyPolygon()
  • Loading branch information
erykoff authored Jun 21, 2024
2 parents 1dad0df + 085339e commit 0532501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_cliCmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def testNoConfigOverride(self):
# assert that the first argument to the call to makeSkyMap was a butler
self.assertIsInstance(mock.call_args[0][0], Butler)
# assert that the second argument matches the expected config
self.assertEqual(mock.call_args[0][1], expectedConfig)
self.assertTrue(mock.call_args[0][1].compare(expectedConfig))

def testConfigOverride(self):
"""Verify expected arguments are passed to makeSkyMap with config
Expand All @@ -102,7 +102,7 @@ def testConfigOverride(self):
# assert that the first argument to the makeSkyMap call was a butler
self.assertIsInstance(mock.call_args[0][0], Butler)
# assert that the second argument matches the expected config
self.assertEqual(mock.call_args[0][1], expectedConfig)
self.assertTrue(mock.call_args[0][1].compare(expectedConfig))

def testNonExistantConfigFile(self):
"""Verify an expected error when a given config override file does not
Expand Down
2 changes: 1 addition & 1 deletion tests/test_matchFakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def setUp(self):

self.simpleMap = skyMap.DiscreteSkyMap(simpleMapConfig)
self.tractId = 0
bCircle = self.simpleMap.generateTract(self.tractId).getInnerSkyPolygon().getBoundingCircle()
bCircle = self.simpleMap.generateTract(self.tractId).getOuterSkyPolygon().getBoundingCircle()
bCenter = sphgeom.LonLat(bCircle.getCenter())
bRadius = bCircle.getOpeningAngle().asRadians()
targetSources = 10000
Expand Down

0 comments on commit 0532501

Please sign in to comment.