picadae calibration programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.py 273B

1234567891011121314151617
  1. import yaml,types
  2. def parse_yaml_cfg( fn ):
  3. """Parse the YAML configuration file."""
  4. cfg = None
  5. with open(fn,"r") as f:
  6. cfgD = yaml.load(f, Loader=yaml.FullLoader)
  7. cfg = types.SimpleNamespace(**cfgD['p_ac'])
  8. return cfg