ReFRACtor
__init__.py
Go to the documentation of this file.
1 from . import creator
2 from . import param
3 
4 def process_config(config_def):
5 
6  if not isinstance(config_def, dict):
7  raise TypeError("Configuration definition is expected to be a dict instance")
8 
9  if "creator" in config_def:
10  creator_class = config_def["creator"]
11  else:
12  creator_class = creator.base.SaveToCommon
13 
14  config_creator = creator_class(config_def)
15 
16  return config_creator()
def process_config(config_def)
Definition: __init__.py:4

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10