seims.utility.parse_config Namespace Reference

Classes

class  ParseNSGA2Config
 
class  ParseResourceConfig
 

Functions

def get_optimization_config (desc='The help information is supposed not be empty.')
 
def parse_datetime_from_ini (cf, section_name, option_name, print_warn=True, required=True)
 

Detailed Description

Parse common used value or class from the configuration (*.ini) file.

    @author   : Liangjun Zhu

    @changelog:
    - 18-10-29  - lj - Extract from other packages.
    - 23-03-29  - lj - ReWrite check_config_option and get_option_value functions.

Function Documentation

◆ get_optimization_config()

def seims.utility.parse_config.get_optimization_config (   desc = 'The help information is supposed not be empty.')
Parse arguments.
Returns:
    cf: ConfigParse object of *.ini file
    mtd: Method name, e.g., 'nsga2' for optimization, 'morris' for sensitivity analysis.

◆ parse_datetime_from_ini()

def seims.utility.parse_config.parse_datetime_from_ini (   cf,
  section_name,
  option_name,
  print_warn = True,
  required = True 
)
Parse datetime from the `ConfigParser` object.