Skip to content

Commit

Permalink
Merge pull request #11 from lsst/tickets/DM-5879
Browse files Browse the repository at this point in the history
DM-5879 Remove use of Boost smart pointers throughout the Science Pipelines
  • Loading branch information
Pim Schellart authored and Pim Schellart committed May 4, 2016
2 parents 806b452 + ceda6d1 commit 92a194c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions include/lsst/ip/isr.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@
#ifndef LSST_IP_ISR_ISR_H
#define LSST_IP_ISR_ISR_H

#include <memory>
#include <string>
#include <vector>

#include <boost/shared_ptr.hpp>

#include <lsst/afw/math.h>
#include <lsst/afw/math/Statistics.h>
#include <lsst/afw/image.h>
Expand Down Expand Up @@ -206,7 +205,7 @@ namespace isr {

template<typename ImagePixelT, typename FunctionT>
void fitOverscanImage(
boost::shared_ptr<lsst::afw::math::Function1<FunctionT> > &overscanFunction,
std::shared_ptr<lsst::afw::math::Function1<FunctionT> > &overscanFunction,
lsst::afw::image::MaskedImage<ImagePixelT> const& overscan,
double ssize=1.,
int sigma=1
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ip/isr/isrLib.i
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Python bindings for lsst::ip::isr Instrument Signature Removal code

// Everything we will need in the _wrap.cc file
%{
#include <boost/shared_ptr.hpp>
#include <memory>

#include "lsst/pex/exceptions.h"
#include "lsst/pex/logging.h"
Expand Down
6 changes: 3 additions & 3 deletions src/Isr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ size_t maskNans(afw::image::MaskedImage<PixelT> const& mi, afw::image::MaskPixel

template<typename ImagePixelT, typename FunctionT>
void fitOverscanImage(
boost::shared_ptr< afw::math::Function1<FunctionT> > &overscanFunction,
std::shared_ptr< afw::math::Function1<FunctionT> > &overscanFunction,
afw::image::MaskedImage<ImagePixelT> const& overscan,
double ssize,
int sigma
Expand Down Expand Up @@ -142,14 +142,14 @@ std::string between(std::string &s, char ldelim, char rdelim) {

template
void fitOverscanImage(
boost::shared_ptr<afw::math::Function1<double> > &overscanFunction,
std::shared_ptr<afw::math::Function1<double> > &overscanFunction,
afw::image::MaskedImage<float> const& overscan,
double ssize,
int sigma);

template
void fitOverscanImage(
boost::shared_ptr<afw::math::Function1<double> > &overscanFunction,
std::shared_ptr<afw::math::Function1<double> > &overscanFunction,
afw::image::MaskedImage<double> const& overscan,
double ssize,
int sigma);
Expand Down

0 comments on commit 92a194c

Please sign in to comment.