Skip to content

Commit

Permalink
Merge branch 'tickets/DM-25253'
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganSchmitz committed Aug 24, 2020
2 parents 4dd452d + 11b1cca commit eef20c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/math/Stack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@
#include "lsst/pex/exceptions.h"
#include "lsst/afw/math/Stack.h"
#include "lsst/afw/math/MaskedVector.h"
#include "lsst/log/Log.h"

namespace pexExcept = lsst::pex::exceptions;

namespace {
LOG_LOGGER _log = LOG_GET("afw.math.Stack");
}

namespace lsst {
namespace afw {
namespace math {
Expand Down Expand Up @@ -260,6 +265,11 @@ void statisticsStack(image::MaskedImage<PixelT> &out,
wvector); // use wvector
}
} else {
if (!wvector.empty()) {
LOGL_WARN(_log,
"Weights passed on to statisticsStack are ignored as sctrl.getWeighted() is False."
"Set sctrl.setWeighted(True) for them to be used.");
}
return computeMaskedImageStack<PixelT, false, false>(out, images, flags, sctrl, clipped, excuse);
}
}
Expand Down

0 comments on commit eef20c8

Please sign in to comment.