Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-42814: Fix error test to match new exceptions #36

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_gaap.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ def testFail(self, scalingFactors=[100.], sigmas=[500.]):
# Expected error messages in the logs when running `sfmTask`.
errorMessage = [("Failed to solve for PSF matching kernel in GAaP for (100.000000, 670.000000): "
"Problematic scaling factors = 100.0 "
"Errors: Exception('Unable to determine kernel sum; 0 candidates')"),
"Errors: RuntimeError('Unable to determine kernel sum; 0 candidates')"),
("Failed to solve for PSF matching kernel in GAaP for (100.000000, 870.000000): "
"Problematic scaling factors = 100.0 "
"Errors: Exception('Unable to determine kernel sum; 0 candidates')"),
"Errors: RuntimeError('Unable to determine kernel sum; 0 candidates')"),
("Failed to solve for PSF matching kernel in GAaP for (-10.000000, -20.000000): "
"Problematic scaling factors = 100.0 "
"Errors: Exception('Unable to determine kernel sum; 0 candidates')")]
"Errors: RuntimeError('Unable to determine kernel sum; 0 candidates')")]

plugin_logger_name = sfmTask.log.getChild(algName).name
self.assertEqual(plugin_logger_name, "lsst.measurement.ext_gaap_GaapFlux")
Expand Down
Loading