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

Helper to construct Fitter from CLI. More...

Collaboration diagram for fitter_options:
Collaboration graph

Public Types

using Fitter = kids::SweepFitter
 

Static Public Attributes

static constexpr auto cli
 
static constexpr auto fitter
 

Detailed Description

Helper to construct Fitter from CLI.

Member Typedef Documentation

◆ Fitter

using fitter_options::Fitter = kids::SweepFitter

Member Data Documentation

◆ cli

constexpr auto fitter_options::cli
staticconstexpr
Initial value:
= [](auto &rc) {
using namespace config_utils::clipp_builder;
return "fitter configs" % __(
_(rc, p("fitter_weight_window_type"), "Fit with weight window of this"
" type applied",
Fitter::WeightOption::lorentz,
list(Fitter::WeightOption{})),
_(rc, p("fitter_weight_window_fwhm"), "The FWHM of the weight window in Hz",
1.5e4, doub()),
_(rc, p("fitter_modelspec"), "The spec of S21 model to use",
Fitter::ModelSpec::gainlintrend,
list(Fitter::ModelSpec{})),
_(rc, p("output_processed" ), "Save the reduced data",
"{stem}{suffix}.{ext}", opt_str("dest"))
);
}

◆ fitter

constexpr auto fitter_options::fitter
staticconstexpr
Initial value:
= [](auto &rc) {
Fitter::Config conf{};
for (auto &[confkey, rckey] :
keymap_t{{"output_processed", "output_processed"},
{"weight_window_type", "fitter_weight_window_type"},
{"weight_window_fwhm", "fitter_weight_window_fwhm"},
{"modelspec", "fitter_modelspec"},
{"exmode", "grppiex"}}) {
if (rc.is_set(rckey)) {
conf.at_or_add(confkey) = rc.at(rckey);
}
}
return Fitter{std::move(conf)};
}
std::unordered_map< std::string, std::string > keymap_t
Definition kids_main.cpp:16
kids::SweepFitter Fitter
Definition kids_main.cpp:60

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