def samples_from_file(file_in, start=0, stop=(-1)):
 if (not os.path.isfile(file_in)):
  raise IOError('no such file `{0}`'.format(file_in))
 (rate, table) = table_from_file(file_in, start=start, stop=stop)
 return (rate, np.array(table.getTable()))

def samples_from_file ( file_in , start = 0 , stop = ( - 1 ) ) : if ( not os . path . isfile ( file_in ) ) : raise IOError ( 'no such file `{0}`' . format ( file_in ) ) ( rate , table ) = table_from_file ( file_in , start = start , stop = stop ) return ( rate , np . array ( table . getTable ( ) ) )
read data from files .