Skip to content

Commit

Permalink
Check if option set before returning option to python
Browse files Browse the repository at this point in the history
  • Loading branch information
Popov-Dmitriy-Ivanovich committed Nov 29, 2023
1 parent 0dca28c commit 129b3be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/algorithms/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ class Algorithm {
std::unordered_map<std::string_view, std::unique_ptr<config::OptValue> > GetOptValues() {
std::unordered_map<std::string_view, std::unique_ptr<config::OptValue> > opt_values;
for (auto& i : possible_options_) {
opt_values[i.second->GetName()] = i.second->GetOptValue();
if(i.second->IsSet()){
opt_values[i.second->GetName()] = i.second->GetOptValue();
}
}
return opt_values;
}
Expand Down

0 comments on commit 129b3be

Please sign in to comment.