# Path: pyfusion/conf/utils.py
# def get_config_as_dict(component_type, component_name):
#     config_option_list = pyfusion.config.pf_options(component_type, component_name)
#     config_map = lambda x: (x, pyfusion.config.pf_get(component_type, component_name, x))
#     return dict(map(config_map, config_option_list))


import pyfusion as pf
from pyfusion.conf.utils import get_config_as_dict

pf.config.get('global','database')  #  'sqlite:///sqlite.txt'
pf.read_config('shaun_feb_2010.cfg')

get_config_as_dict('Device','H1')


# Path: pyfusion/conf/utils.py
# def get_config_as_dict(component_type, component_name):
#     config_option_list = pyfusion.config.pf_options(component_type, component_name)
#     config_map = lambda x: (x, pyfusion.config.pf_get(component_type, component_name, x))
#     return dict(map(config_map, config_option_list))


# Path: pyfusion/examples/example_fragments.py
import pyfusion as pf
from pyfusion.conf.utils import get_config_as_dict


pf.config.get('global','database')  #  'sqlite:///sqlite.txt'
pf.read_config('shaun_feb_2010.cfg')

get_config_as_dict('Device','H1')


get_config_as_dict('Diagnostic','H1PoloidalAll')