#NEWLINE# def read1d( f , a ) : #NEWLINE# #INDENT# '\n    Fill the 1d array, a, with the correct number of values.  Required in\n    case lpf 1d arrays (chani, layvka, etc) extend over more than one line\n\n    ' #NEWLINE# values = [ ] #NEWLINE# while True : #NEWLINE# #INDENT# line = f . readline ( ) #NEWLINE# t = line . strip ( ) . split ( ) #NEWLINE# values = ( values + t ) #NEWLINE# if ( len ( values ) >= values . shape [ 0 ] ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# a [ : ] = np . array ( values [ 0 : a . shape [ 0 ] ] , dtype = a . dtype ) #NEWLINE# return a