# meas_algorithms warning message looks wrong if only 1 sources

XMLWordPrintable

## Details

• Type: Improvement
• Status: To Do
• Resolution: Unresolved
• Fix Version/s: None
• Component/s:
• Labels:
• Templates:

## Description

As shown in DM-11779, we get warning messages from aperture correction looking like:

 only 1 sources, but require at least 2. 

This should be fixed to use correct grammar. The relevant code is python/lsst/meas/algorithms/measureApCorr.py lines 244-249. It looks to me like the warning message is constructed twice, and it would be cleaner to construct it once and use it twice.

## People

• Assignee:
Unassigned
Reporter:
Tim Jenness
Watchers:
Tim Jenness