Skip to content

Commit

Permalink
Move ApertureFlux methods to protected to fix Python signature errors
Browse files Browse the repository at this point in the history
A "using" declaration to un-shadow the multiple overloads of measure() doesn't
appear to work with Swig, so we move those methods to protected to make
Swig continue to call throught the base class interface, which works fine.
  • Loading branch information
TallJimbo committed Jan 27, 2015
1 parent 788e7bc commit 9dd3f51
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/lsst/meas/base/ApertureFlux.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ class ApertureFluxAlgorithm : public SimpleAlgorithm {
daf::base::PropertySet & metadata
);

virtual ~ApertureFluxAlgorithm() {}

protected:

/**
* Measure the configured apertures on the given image.
*
Expand All @@ -201,11 +205,6 @@ class ApertureFluxAlgorithm : public SimpleAlgorithm {
MeasurementError * error=NULL
) const;

virtual ~ApertureFluxAlgorithm() {}


protected:

void copyResultToRecord(Result const & result, afw::table::SourceRecord & record, int index) const;

FlagHandler const & getFlagHandler(int index) const { return _keys[index].flags; }
Expand Down

0 comments on commit 9dd3f51

Please sign in to comment.