#NEWLINE# def _check_scaling_inputs( data , picks_list , scalings ) : #NEWLINE# #INDENT# 'Aux function.' #NEWLINE# rescale_dict_ = dict ( mag = 1000000000000000.0 , grad = 10000000000000.0 , eeg = 1000000.0 ) #NEWLINE# scalings_ = None #NEWLINE# if ( isinstance ( data , string_types ) and ( scalings == 'norm' ) ) : #NEWLINE# #INDENT# scalings_ = ( 1.0 / _compute_row_norms ( data ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( scalings , dict ) : #NEWLINE# #INDENT# rescale_dict_ . update ( scalings ) #NEWLINE# scalings_ = rescale_dict_ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( scalings , np . ndarray ) : #NEWLINE# #INDENT# scalings_ = scalings #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( scalings is None ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NotImplementedError ( ( "No way! That's not a rescaling option: %s" % scalings ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return scalings_