Citlali
Loading...
Searching...
No Matches
Public Types | Static Public Attributes | List of all members
finder_options Struct Reference

Helper to construct Finder from CLI. More...

Collaboration diagram for finder_options:
Collaboration graph

Public Types

using Finder = kids::SweepKidsFinder
 

Static Public Attributes

static constexpr auto cli
 
static constexpr auto finder
 

Detailed Description

Helper to construct Finder from CLI.

Member Typedef Documentation

◆ Finder

using finder_options::Finder = kids::SweepKidsFinder

Member Data Documentation

◆ cli

constexpr auto finder_options::cli
staticconstexpr
Initial value:
= [](auto &rc) {
using namespace config_utils::clipp_builder;
return "finder configs" % __(
_(rc, p("finder_threshold" ), "Detection threshold",
10., doub()),
_(rc, p("finder_resample" ), "Frequency grid to use for the resampling,"
" specified in '[start]:[end][:step]'",
":", str()),
_(rc, p("output_d21" ), "Save the computed D21",
"{stem}{suffix}.{ext}", opt_str("dest")),
_(rc, p("output_processed" ), "Save the reduced data",
"{stem}{suffix}.{ext}", opt_str("dest"))
);
}

◆ finder

constexpr auto finder_options::finder
staticconstexpr
Initial value:
= [](auto &rc) {
Finder::Config conf{};
for (auto &[confkey, rckey] : keymap_t{
{"output_processed", "output_processed"},
{"output_d21", "output_d21"},
{"threshold", "finder_threshold"},
{"resample", "finder_resample"},
{"fitter_weight_window_type", "fitter_weight_window_type"},
{"fitter_weight_window_fwhm", "fitter_weight_window_fwhm"},
{"exmode", "grppiex"}}) {
if (rc.is_set(rckey)) {
conf.at_or_add(confkey) = rc.at(rckey);
}
}
return Finder{std::move(conf)};
}
std::unordered_map< std::string, std::string > keymap_t
Definition kids_main.cpp:16
kids::SweepKidsFinder Finder
Definition kids_main.cpp:22

The documentation for this struct was generated from the following file: