![]()  | 
  
    PURIFY
    
   Next-generation radio interferometric imaging 
   | 
 
#include <yaml-parser.h>
Public Member Functions | |
| YamlParser (const std::string &filepath) | |
| void | readFile () | 
| void | setParserVariablesFromYaml () | 
| void | parseAndSetGeneralConfiguration (const YAML::Node &node) | 
| void | parseAndSetMeasureOperators (const YAML::Node &node) | 
| void | parseAndSetSARA (const YAML::Node &node) | 
| std::vector< std::string > | getWavelets (const std::string &values_str) | 
| void | parseAndSetAlgorithmOptions (const YAML::Node &node) | 
| void | writeOutput () | 
| std::string | output_path () const | 
Definition at line 25 of file yaml-parser.h.
| purify::YamlParser::YamlParser | ( | const std::string & | filepath | ) | 
YamlParser constructor definition
| filepath | path to config file | 
Definition at line 19 of file yaml-parser.cc.
References readFile(), and setParserVariablesFromYaml().
| std::vector< std::string > purify::YamlParser::getWavelets | ( | const std::string & | values_str | ) | 
Translate the waveket basis string t_into a vector
Definition at line 281 of file yaml-parser.cc.
Referenced by parseAndSetSARA().
      
  | 
  inline | 
Definition at line 152 of file yaml-parser.h.
Referenced by genHeaders(), main(), saveDirtyImage(), saveMeasurementEigenVector(), and savePSF().
| void purify::YamlParser::parseAndSetAlgorithmOptions | ( | const YAML::Node & | node | ) | 
Parse the YAML AlgorithmOptions block and set the class members appropriately
Definition at line 208 of file yaml-parser.cc.
References purify::factory::algo_distribution_string, purify::Denoiser, purify::diff_type_string, purify::L2Norm_with_CRR, and purify::nondiff_type_string.
Referenced by setParserVariablesFromYaml().
| void purify::YamlParser::parseAndSetGeneralConfiguration | ( | const YAML::Node & | node | ) | 
Parse the YAML GeneralConfiguration block and set the class members appropriately
Definition at line 102 of file yaml-parser.cc.
References purify::utilities::lambda, purify::utilities::measurements, purify::utilities::pixels, PURIFY_LOW_LOG, purify::utilities::radians, purify::utilities::simulation, and purify::stokes_string.
Referenced by setParserVariablesFromYaml().
| void purify::YamlParser::parseAndSetMeasureOperators | ( | const YAML::Node & | node | ) | 
Parse the YAML MeasureOperator block and set the class members appropriately
Definition at line 176 of file yaml-parser.cc.
Referenced by setParserVariablesFromYaml().
| void purify::YamlParser::parseAndSetSARA | ( | const YAML::Node & | node | ) | 
Parse the YAML SARA block and set the class members appropriately
Definition at line 200 of file yaml-parser.cc.
References getWavelets().
Referenced by setParserVariablesFromYaml().
| void purify::YamlParser::readFile | ( | ) | 
Read configuration file in memory
Definition at line 38 of file yaml-parser.cc.
Referenced by YamlParser().
| void purify::YamlParser::setParserVariablesFromYaml | ( | ) | 
Set the class members from the YAML inputs
Definition at line 93 of file yaml-parser.cc.
References parseAndSetAlgorithmOptions(), parseAndSetGeneralConfiguration(), parseAndSetMeasureOperators(), and parseAndSetSARA().
Referenced by YamlParser().
| void purify::YamlParser::writeOutput | ( | ) | 
Write an output YAML file for the current simulation parameters.
Definition at line 317 of file yaml-parser.cc.
References purify::mkdir_recursive().
Referenced by initOutDirectoryWithConfig(), and TEST_CASE().