original_docstring:  Normalise an array composed of three regions (upstream, middle and end), where middle = TM
docstring: Normalise an array composed of three regions (upstream, middle and end), where middle = TM
docstring_tokens: Normalise an array composed of three regions ( upstream middle and end ) where middle = TM
code: def normalisePaddedArray(input_array, upstream_pad, downstream_pad, tm_length, size):
      ''' Normalise an array composed of three regions (upstream, middle and end), where middle = TM'''
      assert len(input_array) == sum((upstream_pad, downstream_pad, tm_length))
      
      up_array = input_array[0:upstream_pad]
      tm_array = input_array[upstream_pad:upstream_pad+tm_length]
      down_array = input_array[upstream_pad+tm_length:]
      new_array = np.zeros(3 * size)
      
      new_array[0:size] = sequence.sequence.normaliseArraySize(up_array, size=size)
      new_array[size:2*size] = sequence.normaliseArraySize(tm_array, size=size)
      new_array[2*size: 3*size] = sequence.normaliseArraySize(down_array, size=size)
      
      return(new_array)
code_tokens: def normalisePaddedArray ( input_array , upstream_pad , downstream_pad , tm_length , size ) : assert len ( input_array ) == sum ( ( upstream_pad , downstream_pad , tm_length ) ) up_array = input_array [ 0 : upstream_pad ] tm_array = input_array [ upstream_pad : upstream_pad + tm_length ] down_array = input_array [ upstream_pad + tm_length : ] new_array = np . zeros ( 3 * size ) new_array [ 0 : size ] = sequence . sequence . normaliseArraySize ( up_array , size = size ) new_array [ size : 2 * size ] = sequence . normaliseArraySize ( tm_array , size = size ) new_array [ 2 * size : 3 * size ] = sequence . normaliseArraySize ( down_array , size = size ) return ( new_array )
short_docstring: Normalise an array composed of three regions (upstream, middle and end), where middle = TM
short_docstring_tokens: Normalise an array composed of three regions ( upstream middle and end ) where middle = TM
comment: ''' Normalise an array composed of three regions (upstream, middle and end), where middle = TM'''