#NEWLINE# def set_parameter_bound( param , bound_option , extra_config = None ) : #NEWLINE# #INDENT# '\n    Update the default value of bounds.\n\n    .. warning :: This function mutates the input values.\n\n    Parameters\n    ----------\n    param : dict\n        saving all the fitting values and their bounds\n    bound_option : str\n        define bound type\n    extra_config : dict\n        strategy-specific configuration\n    ' #NEWLINE# strat_dict = _STRATEGY_REGISTRY [ bound_option ] #NEWLINE# if ( extra_config is None ) : #NEWLINE# #INDENT# extra_config = dict ( ) #NEWLINE# #UNINDENT# for ( k , v ) in six . iteritems ( param ) : #NEWLINE# #INDENT# if ( k == 'non_fitting_values' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# v [ 'bound_type' ] = strat_dict [ k ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# v [ 'bound_type' ] = extra_config . get ( v , 'fixed' )