Skip to content

Commit

Permalink
Use fields or field depending on number of dropped fields
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 2, 2023
1 parent 443bf7c commit f368041
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/afw/image/_exposureSummaryStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def _read(bytes):
yamlDict.pop(_field)
if len(droppedFields) > 0:
droppedFieldString = ", ".join([str(f) for f in droppedFields])
plural = "s" if len(droppedFields) != 1 else ""
warnings.warn(
f"Summary fields [{droppedFieldString}] not recognized by this software version;"
f"Summary field{plural} [{droppedFieldString}] not recognized by this software version;"
" ignoring them.",
FutureWarning,
stacklevel=2,
Expand Down

0 comments on commit f368041

Please sign in to comment.