SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
GrowthCurveConfig.cpp
Go to the documentation of this file.
1
18#include <boost/program_options.hpp>
20
21namespace po = boost::program_options;
22using namespace Euclid::Configuration;
23
24namespace SourceXtractor {
25
26const static std::string GROWTH_NSAMPLES{"flux-growth-samples"};
27
29
31 return {{"Growth curve", {
32 {GROWTH_NSAMPLES.c_str(), po::value<int>()->default_value(64), "Number of samples to take from the growth curve"}
33 }}};
34}
35
37 if (args.count(GROWTH_NSAMPLES)) {
38 m_nsamples = args.at(GROWTH_NSAMPLES).as<int>();
39 if (m_nsamples <= 0) {
40 throw Elements::Exception() << GROWTH_NSAMPLES << " must be greater than 0";
41 }
42 }
43}
44
45} // end of namespace SourceXtractor
void initialize(const UserValues &args) override
std::map< std::string, OptionDescriptionList > getProgramOptions() override
static const std::string GROWTH_NSAMPLES