code: def getParameterArray(self, name, index, array):
      
      if name.startswith('_'):
        raise Exception('Parameter name must not start with an underscore')
  
      v = getattr(self, name)
      # Not performing sanity checks for performance reasons.
      #assert array.dtype == v.dtype
      #assert len(array) == len(v)
      array[:] = v
docs: Default implementation that return an attribute with the requested name.
  
      This method provides a default implementation of
      :meth:`~nupic.bindings.regions.PyRegion.PyRegion.getParameterArray`
      that returns an attribute with the parameter name. If the Region
      conceptually contains multiple nodes with separate state the ``index``
      argument is used to request a parameter of a specific node inside the
      region. The attribute value is written into the output array. No type or
      sanity checks are performed for performance reasons. If something goes awry
      it will result in a low-level exception. If you are unhappy about it you can
      implement your own
      :meth:`~nupic.bindings.regions.PyRegion.PyRegion.getParameterArray`
      method in the subclass.
  
      The implementation prevents accessing parameters names that start with
      ``_``. It may be better to enforce this convention at the node spec level.
  
      :param name: (string) name of requested parameter
      :param index: (int) index of node inside the region (if relevant)
      :param array: output numpy array that the value is written to
      :raises: Exception if parameter starts with ``_``.