#NEWLINE# def _get_init_params( self , A_guess , B_guess ) : #NEWLINE# #INDENT# '\n        Returns either the given starting or .1 if none are given.\n        ' #NEWLINE# var_type = self . svar_type . lower ( ) #NEWLINE# n_masked_a = self . A_mask . sum ( ) #NEWLINE# if ( n_masked_b in [ 'ab' , 'a' ] ) : #NEWLINE# #INDENT# if ( A_guess is None ) : #NEWLINE# #INDENT# A_guess = np . array ( ( [ 0.1 ] * n_masked_a ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( A_guess ) != n_masked_a ) : #NEWLINE# #INDENT# msg = 'len(A_guess) = %s, there are %s parameters in A' #NEWLINE# raise ValueError ( ( msg % ( len ( A_guess ) , n_masked_a ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# A_guess = [ ] #NEWLINE# #UNINDENT# n_masked_b = self . B_mask . sum ( ) #NEWLINE# if ( var_type in [ 'ab' , 'b' ] ) : #NEWLINE# #INDENT# if ( B_guess is None ) : #NEWLINE# #INDENT# B_guess = np . array ( ( [ 0.1 ] * n_masked_b ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( B_guess ) != n_masked_b ) : #NEWLINE# #INDENT# msg = 'len(B_guess) = %s, there are %s parameters in B' #NEWLINE# raise ValueError ( ( msg % ( len ( B_guess ) , n_masked_b ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# B_guess = [ ] #NEWLINE# #UNINDENT# return np . r_ [ ( A_guess , B_guess ) ]