Project: datamanagement
Issue DM-5427: SingleFrameVariancePlugin can give numpy warnings
SingleFrameVariancePlugin can produce the following numpy warning, with no hint as to where the problem is coming from: {code} /Users/rowen/UW/LSST/lsstsw/miniconda/lib/python2.7/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice. warnings.warn("Mean of empty slice.", RuntimeWarning) {code} I tracked it down by adding the following code to the calling code: {code} import warnings with warnings.catch_warnings(): warnings.filterwarnings('error') {code} It would be nice if the measurement plugin handled this situation more gracefully, such as turning the warning into an exception or testing for it and handling it. One way to reproduce this problem is to run {{tests/testProcessCcd.py}} in {{pipe_tasks}}. However, it is commonly seen when running {{processCcd}} on other data, as well.
Story points: 2